/* ============================================
   AO CODE FINDER - CLEAN MODERN UI
   ============================================ */

/* === CSS Variables === */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #dcfce7;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
}

/* === Reset === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

/* === Header - Modern Navbar === */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 65px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
}

.logo-text .brand-tagline {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary-dark);
    background: var(--primary-light);
}

.main-nav a.active {
    color: var(--primary-dark);
    background: var(--primary-light);
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.2s ease;
}

/* === Main Content === */
.main-content {
    min-height: calc(100vh - 70px);
}

/* === Footer === */
.main-footer {
    background: #1f2937;
    color: white;
    padding: 40px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-disclaimer {
    max-width: 600px;
    margin: 0 auto 20px;
}

.footer-disclaimer p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-copyright p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* === City Page === */
.city-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

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

.breadcrumb .separator {
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-gray);
}

.city-header {
    text-align: center;
    margin-bottom: 40px;
}

.city-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.city-title .highlight {
    color: var(--primary);
}

.city-subtitle {
    color: var(--text-gray);
}

/* === AO Table === */
.ao-table-section {
    margin-bottom: 40px;
}

.table-wrapper {
    overflow-x: auto;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.ao-table {
    width: 100%;
    border-collapse: collapse;
}

.ao-table thead {
    background: var(--primary);
}

.ao-table th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ao-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
}

.ao-table tbody tr:last-child td {
    border-bottom: none;
}

.ao-table tbody tr:hover {
    background: var(--primary-light);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: #dbeafe;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 20px;
}

.badge-alt {
    background: #fef3c7;
    color: #d97706;
}

/* === Description Section === */
.description-section {
    margin-bottom: 40px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.description-section h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.description-content {
    color: var(--text-gray);
    line-height: 1.8;
}

.extra-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.extra-description h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

/* === Related Section === */
.related-section {
    margin-bottom: 40px;
}

.related-section h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

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

.back-home {
    text-align: center;
    margin-top: 40px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
}

.btn-back:hover {
    background: var(--primary-dark);
}

/* === Page Container === */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.page-body {
    color: var(--text-gray);
    line-height: 1.8;
}

.page-body h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 24px 0 12px;
}

.page-body p {
    margin-bottom: 16px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .header-container {
        height: 60px;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .city-title {
        font-size: 1.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}