/* css/style.css */

/* 1. VARIABLES & TOKENS */
:root {
    --bg-main: #0a0a0a;       /* Almost Black */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #ffffff;        /* High Contrast White */
    --border: #27272a;        /* Subtle Border */
    --surface: #18181b;       /* Dark Cards */
    
    /* Gen Z Gradient */
    --gradient-main: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); /* Electric Blue */
    --gradient-text: linear-gradient(135deg, #00c6ff 0%, #0072ff 50%, #9d50bb 100%); /* Blue to Purple */

    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius: 16px;
    --radius-sm: 12px;
}

/* Light Mode Toggle (Optional Future Proofing) */
@media (prefers-color-scheme: light) {
    /* Uncomment to force light mode if desired, but Dark fits Gen Z better */
    /* :root { --bg-main: #ffffff; --text-main: #000000; --surface: #f4f4f5; } */
}

/* 2. RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
button{
     font-family: var(--font-body);
}

a { text-decoration: none; color: inherit; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* 3. NAVIGATION */
.navbar {
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.8); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Blur effect for modern look */
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    font-family: var(--font-head);
    font-weight: 800; /* Bolder font weight */
    font-size: 1.75rem; /* Larger size */
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
}

/* Gen Z Logo Styling */
.brand-logo-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.brand-logo-icon {
    font-size: 1.5rem;
    margin-right: 8px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 24px;
    font-weight: 600; /* Bolder font weight */
    text-transform: uppercase; /* Gen Z style */
    letter-spacing: 0.05em;
}

.nav-links a:hover { color: var(--text-main); }

/* 4. HERO SEARCH SECTION */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px; /* Increased padding */
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background Gradients */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    /* More dynamic, subtle background gradient */
    background: radial-gradient(circle at center, rgba(0, 198, 255, 0.1) 0%, rgba(10, 10, 10, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-badge {
    border: 1px solid var(--border);
    padding: 8px 16px; /* Slightly larger padding */
    border-radius: 50px;
    font-size: 0.85rem; /* Slightly larger font */
    color: var(--text-main); /* White text for better contrast */
    margin-bottom: 32px; /* Increased margin */
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.hero-badge::before {
    content: '✨';
    margin-right: 8px;
}


.hero-title {
    font-family: var(--font-head);
    font-size: 5rem; /* Larger title */
    line-height: 1;
    font-weight: 800;
    margin-bottom: 24px; /* Increased margin */
    letter-spacing: -0.06em;
    /* Gen Z Gradient Text */
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.25rem; /* Larger subtitle */
    color: var(--text-muted);
    max-width: 600px; /* Wider max-width */
    margin-bottom: 56px; /* Increased margin */
    font-weight: 400;
}

/* 5. THE MODERN SEARCH BAR */
.search-container {
    width: 100%;
    max-width: 700px; /* Wider search container */
    position: relative;
    display: flex; /* Use flexbox for layout */
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius); /* Larger radius for container */
    padding: 8px; /* Padding around input and button */
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.search-container:focus-within {
    border-color: #0072ff; /* Blue border on focus */
    box-shadow: 0 10px 30px rgba(0, 114, 255, 0.2); /* Blue glow */
    transform: translateY(-2px);
}


.search-icon-wrapper {
    padding-left: 20px;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 1.4rem;
}

.search-input {
    flex: 1; /* Take up available space */
    width: 100%;
    padding: 16px 20px; /* Adjusted padding */
    font-size: 1.2rem;
    background: transparent; /* Transparent background */
    border: none; /* No border */
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 500;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: #52525b;
    font-weight: 400;
}

.search-button {
    background: var(--gradient-main); /* Gradient background */
    color: var(--text-main);
    border: none;
    padding: 16px 32px; /* Large button padding */
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-head);
    border-radius: var(--radius-sm); /* Smaller radius for button */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4);
}

.search-button:active {
    transform: scale(0.98);
}


.status-indicator {
    margin-top: 20px;
    height: 24px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* 6. RESULTS GRID */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Slightly wider columns */
    gap: 20px; /* Increased gap */
    width: 100%;
    max-width: 900px; /* Wider max-width */
    margin-top: 48px; /* Increased margin */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

.results-grid.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px; /* Increased padding */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 180px; /* Increased height */
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.result-card:hover {
    border-color: #0072ff; /* Blue border on hover */
    background: #1c1c1f;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.card-icon {
    font-size: 2rem; /* Larger icon */
    margin-bottom: auto;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-title {
    font-family: var(--font-head);
    font-size: 1.5rem; /* Larger title */
    font-weight: 800;
    line-height: 1.1;
}

.card-arrow {
    position: absolute;
    top: 28px;
    right: 28px;
    font-size: 1.5rem;
    color: var(--text-main);
    opacity: 0;
    transform: translate(-15px, 15px) rotate(-45deg);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.result-card:hover .card-arrow {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
}

/* 7. FOOTER */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 20px; /* Increased padding */
    margin-top: auto;
    background: var(--bg-main);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px; /* Increased gap */
}

.footer-links {
    display: flex;
    gap: 32px; /* Increased gap */
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-link:hover {
    color: var(--text-main);
}

.copyright {
    font-size: 0.85rem;
    color: #52525b;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 3.5rem; }
    .navbar { padding: 20px; }
    .search-container { max-width: 100%; flex-direction: column; padding: 12px; }
    .search-icon-wrapper { display: none; }
    .search-input { padding: 16px; text-align: center; }
    .search-button { width: 100%; margin-top: 12px; padding: 14px; }
    .results-grid { grid-template-columns: 1fr; }
    .hero { padding: 60px 20px; }
}

/* LEGAL PAGE STYLES */
.legal-container {
    max-width: 800px;
    margin: 80px auto; /* Increased margin */
    padding: 0 24px;
}
.legal-title {
    font-family: var(--font-head);
    font-size: 3.5rem; /* Larger title */
    font-weight: 800;
    margin-bottom: 48px;
    letter-spacing: -0.04em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.legal-content h2 { 
    margin-top: 40px; 
    margin-bottom: 16px; 
    font-family: var(--font-head); 
    font-size: 1.75rem;
    font-weight: 700;
}
.legal-content p { 
    margin-bottom: 20px; 
    color: #d4d4d8; 
    font-size: 1.05rem;
}
.legal-content a {
    color: #00c6ff; /* Blue accent color for links */
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 198, 255, 0.3);
}
.legal-content a:hover {
    border-bottom-color: #00c6ff;
}

.trending-container {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.trending-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.trend-chip {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.trend-chip:hover {
    background: var(--text-main);
    color: var(--bg-main);
    transform: translateY(-2px);
}

.nav-links{
        text-align: right;
}