/* Header CSS */

/* ===== Global Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Body ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f172a; /* deep navy */
    color: #e5e7eb;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* ===== Flex Layout ===== */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

/* ===== Logo ===== */
.logo a {
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;

    background: linear-gradient(135deg, #38bdf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* ===== Navigation ===== */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

/* ===== Nav Links ===== */
.main-nav a {
    position: relative;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: #cbd5f5;
    letter-spacing: 0.5px;
    padding: 6px 0;

    transition: all 0.3s ease;
}

/* ===== Animated underline ===== */
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;

    background: linear-gradient(90deg, #38bdf8, #6366f1);
    border-radius: 2px;

    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: #ffffff;
}

.main-nav a:hover::after {
    width: 100%;
}

/* ===== Active Link (optional class) ===== */
.main-nav a.active {
    color: #ffffff;
}

.main-nav a.active::after {
    width: 100%;
}

/* ===== Subtle Glow on Hover ===== */
.main-nav li:hover {
    transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }
}


/* ===== Search Box ===== */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;

    max-width: 600px;
    margin: 20px auto;

    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* ===== Input Field ===== */
.search-box input {
    flex: 1;
    padding: 12px 14px;

    border: none;
    outline: none;
    border-radius: 8px;

    background: transparent;
    color: #fff;
    font-size: 0.95rem;
}

.search-box input::placeholder {
    color: #94a3b8;
}

/* ===== Button ===== */
.search-box button {
    padding: 12px 18px;
    border: none;
    border-radius: 8px;

    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: white;
    font-weight: 500;
    cursor: pointer;

    transition: 0.3s;
}

.search-box button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(99,102,241,0.4);
}

/* index.php CSS default*/

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Body ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #0f172a, #020617);
    color: #e5e7eb;
    line-height: 1.6;
}

/* ===== Sections ===== */
.quick-links,
.popular-cities,
.stats-overview,
.latest-insights,
.cta-section {
    padding: 70px 0;
}

/* ===== Cards (Modern Glass Style) ===== */
.card, .city-card, .feature-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 14px;
    padding: 25px;

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 
        0 10px 25px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.05);

    text-decoration: none;
    color: #e5e7eb;

    transition: all 0.35s ease;
}

/* ===== Card Hover ===== */
.card:hover, 
.city-card:hover, 
.feature-box:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.6),
        0 0 20px rgba(99,102,241,0.25);
}

/* ===== Headings inside cards ===== */
.card h3,
.city-card h3,
.feature-box h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

/* ===== Links ===== */
a {
    color: #60a5fa;
    transition: 0.3s;
}

a:hover {
    color: #93c5fd;
}

/* ===== Latest Insights ===== */
.latest-insights ul {
    list-style: none;
}

.latest-insights li {
    margin-bottom: 12px;
}

.latest-insights a {
    text-decoration: none;
    font-weight: 500;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, #1e293b, #020617);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ===== CTA Button ===== */
.cta-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 32px;

    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: white;

    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;

    box-shadow: 0 10px 25px rgba(99,102,241,0.4);

    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(99,102,241,0.6);
}

/* ===== City Page ===== */
.city-page {
    padding: 60px 0;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: #94a3b8;
}

.breadcrumbs a {
    text-decoration: none;
    color: #60a5fa;
}

.breadcrumbs a:hover {
    color: #93c5fd;
}

/* ===== Page Title ===== */
.city-page h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.city-page p {
    color: #94a3b8;
    margin-bottom: 30px;
}

/* ===== Highlight Stat Box ===== */
.stat-highlight {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;

    text-align: center;

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 
        0 10px 30px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.stat-highlight h2 {
    font-size: 2.5rem;
    font-weight: 700;

    background: linear-gradient(135deg, #38bdf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Stats Table ===== */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 50px;

    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    overflow: hidden;

    border: 1px solid rgba(255,255,255,0.08);
}

.stats-table th,
.stats-table td {
    padding: 16px 18px;
    text-align: left;
}

.stats-table th {
    background: rgba(255,255,255,0.06);
    color: #e5e7eb;
    font-weight: 600;
    width: 40%;
}

.stats-table td {
    color: #cbd5f5;
}

/* ===== Table Row Divider ===== */
.stats-table tr:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ===== Hover Effect ===== */
.stats-table tr:hover {
    background: rgba(99,102,241,0.08);
}

/* ===== Related Links Section ===== */
.related-links {
    margin-top: 30px;
}

.related-links h2 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #ffffff;
}

/* ===== Links Grid ===== */
.related-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

/* ===== Link Cards ===== */
.related-links li a {
    display: block;
    padding: 14px 18px;

    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;

    text-decoration: none;
    color: #e5e7eb;
    font-weight: 500;

    border: 1px solid rgba(255,255,255,0.08);

    transition: all 0.3s ease;
}

.related-links li a:hover {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: #ffffff;

    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99,102,241,0.4);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {

    .city-page h1 {
        font-size: 1.6rem;
    }

    .stat-highlight {
        padding: 25px;
    }

    .stat-highlight h2 {
        font-size: 2rem;
    }

    .stats-table th,
    .stats-table td {
        padding: 12px;
    }
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

/* ===== Stat Card ===== */
.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 20px;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);

    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 10px 25px rgba(0,0,0,0.4);

    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.6),
        0 0 20px rgba(99,102,241,0.25);
}

/* ===== Icon ===== */
.stat-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: white;

    flex-shrink: 0;
}

/* ===== Text ===== */
.stat-info h3 {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

/* ===== Progress Bars (Mini Charts) ===== */
.progress {
    margin-top: 8px;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    border-radius: 10px;
}

/* ===== Optional: Highlight animation ===== */
.stat-highlight {
    position: relative;
    overflow: hidden;
}

.stat-highlight::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );

    animation: shine 3s infinite;
}

@keyframes shine {
    100% {
        left: 100%;
    }
}

/* ===== Footer ===== */
footer {
    background: #020617;
    color: #94a3b8;

    padding: 50px 0;
    text-align: center;
    margin-top: 60px;

    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== Footer Links ===== */
footer a {
    color: #60a5fa;
}

footer a:hover {
    color: #93c5fd;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {

    .hero h1 {
        font-size: 2rem;
    }

    .search-box input {
        width: 100%;
    }

    .card, .city-card {
        padding: 20px;
    }
}