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

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

.text-center {
    text-align: center;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Header & Nav */
header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--primary);
    transition: all 0.2s;
}

.menu-toggle:hover {
    background: #f1f5f9;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}

nav a:hover, nav li.active a {
    color: var(--accent);
}

.nav-btn {
    background: var(--accent);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.nav-btn.secondary {
    background: transparent;
    color: var(--text-main) !important;
    border: 1px solid var(--border);
}

.nav-btn.secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Hero Section */
.hero-section {
    padding: 6rem 1.5rem;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, var(--bg-main));
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    background: var(--bg-surface);
    padding: 0.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 0.5rem;
    border: 1px solid var(--border);
}

.search-input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: var(--text-main);
}

.search-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: calc(var(--radius) - 4px);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.search-btn:hover {
    background: var(--accent-hover);
}

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

/* Results Area */
.results-section {
    max-width: 900px;
    margin: -2rem auto 4rem;
    padding: 0 1.5rem;
    text-align: center;
}

#data-got {
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

#data {
    background: var(--bg-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Footer */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    margin-top: auto;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* Results Table */
.table-responsive {
    margin-top: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
}

.table th, .table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: #f1f5f9;
    font-weight: 600;
    color: var(--primary);
    width: 30%;
}

.table tr:last-child th, .table tr:last-child td {
    border-bottom: none;
}

.table a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.table a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
header {
        padding: 0.5rem 0;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1.5rem;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }
    
    nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }

    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        align-items: center;
        padding: 1rem 0;
    }
    
    nav li {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 0.5rem;
    }

    .nav-btn {
        display: block;
        width: 100%;
        padding: 0.875rem !important;
        margin: 0 auto;
    }

    .hero-section {
        padding: 4rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .search-container {
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .search-btn {
        width: 100%;
        padding: 1rem;
    }

    .results-section {
        padding: 0 1rem;
        margin-top: 0;
    }

    .table th {
        width: 40%;
        padding: 1rem;
        font-size: 0.9rem;
    }

    .table td {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .logo-img {
        height: 32px;
    }
}
