@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0b0f19;
    --surface-color: #111827;
    --primary-color: #3b82f6;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --positive: #10b981;
    --negative: #ef4444;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(12px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* SEO Friendly Hidden Header */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Layout */
header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* History Badges */
.history-entry {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.history-entry:hover {
    background: var(--primary-color);
    color: white;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
}

.logo-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: -4px;
    font-weight: 600;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--text-main);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Search Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-top: 2rem;
}

.search-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    padding-right: 3.5rem;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-main);
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Results Section */
.results-container {
    margin-top: 2rem;
    width: 100%;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.result-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.result-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    background: rgba(59, 130, 246, 0.05);
}

.result-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.result-card .badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--glass-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Ad Zones */
.ad-slot {
    background: var(--surface-color);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin: 2rem 0;
    min-height: 90px;
}

/* Popular Section */
.popular-tags {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Ad Slots */
.ad-slot {
    width: 100%;
    max-width: 970px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.ad-slot::before {
    content: 'ADVERTISEMENT';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.ad-mockup-img {
    width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition);
}

.ad-slot:hover .ad-mockup-img {
    opacity: 1;
}

.tag {
    background: var(--glass-bg);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid transparent;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    header {
        padding: 0.75rem 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    main {
        padding: 1rem;
    }

    .search-input {
        font-size: 1rem;
        padding: 1rem 1.2rem;
        padding-right: 3rem;
    }

    .results-container {
        grid-template-columns: 1fr;
    }

    .nav-section {
        gap: 0.5rem;
    }

    .history-entry {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-sub {
        font-size: 0.55rem;
    }

    .popular-tags {
        gap: 0.4rem;
    }

    .tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .ad-slot {
        min-height: 60px;
        font-size: 0.7rem;
    }
}
