:root {
    /* Color Palette */
    --bg-dark: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-primary: #6366f1; /* Indigo */
    --accent-secondary: #8b5cf6; /* Violet */
    --accent-glow: rgba(99, 102, 241, 0.5);
    
    /* Glassmorphism */
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Variables */
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Orbs */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    top: -10%;
    left: 10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
}

.orb-2 {
    bottom: -20%;
    right: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    animation-delay: -5s;
}

.orb-3 {
    top: 30%;
    left: 50%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Layout Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease forwards;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo i {
    color: var(--accent-primary);
    text-shadow: 0 0 20px var(--accent-glow);
}

.logo span {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Glass Card Global Styles */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
}

/* Search Section */
.search-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.input-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
}

#domain-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
}

#domain-input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

#search-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 40px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

#search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

#search-btn:active {
    transform: translateY(0);
}

/* State Containers */
.state-container {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeIn 0.5s ease;
}

.hidden {
    display: none !important;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin: 0 auto 1.5rem auto;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.error-icon {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

/* Dashboard */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInUp 0.5s ease forwards;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    gap: 2rem;
}

.header-main {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.domain-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.favicon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

#site-name {
    font-size: 2.2rem;
    font-family: 'Outfit', sans-serif;
    word-break: break-all;
}

.site-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.site-category {
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    line-height: 1.5;
}

.header-image-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
}

#site-screenshot {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    object-fit: cover;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-5px);
    background: rgba(40, 50, 70, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-primary);
}

.metric-info h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.highlight {
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Engagement Section */
.engagement-section {
    padding: 2rem;
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.engagement-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.engagement-item .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.engagement-item .value {
    font-size: 1.4rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

/* Footer */
footer {
    margin-top: auto;
    padding-top: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .logo { font-size: 2.2rem; }
    #search-btn .btn-text { display: none; }
    #search-btn { border-radius: 50%; padding: 0.8rem; width: 45px; height: 45px; justify-content: center; }
}

/* New Extra Data Styles */
.data-block {
    padding: 1.5rem;
}

.extra-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-item .label {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-item .value {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.detail-item.keyword .label {
    color: var(--text-main);
    word-break: break-all;
    max-width: 60%;
}

.detail-item.keyword .value {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.prompts-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}

.prompts-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-main);
    border-left: 3px solid var(--accent-primary);
    line-height: 1.4;
}
