/* Global Travel Guide - Main Stylesheet */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f97316;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-light);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.logo { font-size: 1.8rem; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.logo span { color: var(--secondary-color); }
.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { font-weight: 500; color: var(--text-color); padding: 8px 16px; border-radius: var(--radius); text-decoration: none; }

/* Hamburger Menu */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; z-index: 1001; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--text-color); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Search */
.search-results { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; border-radius: 0 0 12px 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); max-height: 400px; overflow-y: auto; z-index: 100; }
.search-results.active { display: block; }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; text-decoration: none; color: var(--text-color); transition: background 0.2s; }
.search-result-item:hover { background: var(--bg-light); }
.search-result-item img { width: 50px; height: 36px; object-fit: cover; border-radius: 6px; }
.search-result-item .result-info h4 { font-size: 0.9rem; margin: 0 0 2px; color: var(--text-color); }
.search-result-item .result-info span { font-size: 0.8rem; color: var(--text-light); }
.search-no-result { padding: 20px; text-align: center; color: var(--text-light); font-size: 0.95rem; }
.nav-links a:hover { background: var(--bg-light); color: var(--primary-color); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 80px 0;
    text-align: center;
}
.hero h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.2rem; opacity: 0.9; max-width: 600px; margin: 0 auto 30px; }
.hero-search {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-search input { flex: 1; padding: 15px 20px; border: none; font-size: 1rem; outline: none; }
.hero-search button {
    padding: 15px 30px;
    background: var(--secondary-color);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.hero-search button:hover { background: #ea580c; }

/* Sections */
.section { padding: 60px 0; }
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Feature Box */
.feature-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.feature-item .icon { font-size: 3rem; margin-bottom: 15px; }
.feature-item h3 { margin-bottom: 10px; }
.feature-item p { color: var(--text-light); }

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.category-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.category-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.category-card-image .region-label {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}
.category-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}
.category-card-content { padding: 20px; }
.category-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-color); }
.category-card p { color: var(--text-light); font-size: 0.95rem; }
.category-card .count {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* Article Cards */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.article-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.article-card-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    background-size: cover;
    background-position: center;
}
.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-card-image .tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.article-card-content { padding: 25px; }
.article-card h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--text-color); line-height: 1.4; }
.article-card h3:hover { color: var(--primary-color); }
.article-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Article Detail Page */
.article-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 60px 0 40px;
}
.article-header .container { max-width: 1200px; }
.article-header .tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.article-header h1 { font-size: 2.5rem; line-height: 1.3; margin-bottom: 20px; }
.article-header .meta { display: flex; gap: 20px; font-size: 0.95rem; opacity: 0.9; }

.article-content { background: var(--bg-color); padding: 50px 0; }
.article-content .container { max-width: 1200px; }
.article-body { font-size: 1.1rem; line-height: 1.9; }
.article-body h2 {
    font-size: 1.6rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}
.article-body h3 { font-size: 1.3rem; margin: 30px 0 15px; color: var(--primary-color); }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 20px 0; padding-left: 30px; }
.article-body li { margin-bottom: 10px; }
.article-body blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}
.article-body .tip-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 20px 25px;
    border-radius: var(--radius);
    margin: 25px 0;
}
.article-body .tip-box h4 { color: var(--secondary-color); margin-bottom: 10px; }
.article-body .info-box {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    padding: 20px 25px;
    border-radius: var(--radius);
    margin: 25px 0;
}
.article-body .info-box h4 { color: var(--primary-color); margin-bottom: 10px; }

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}
.breadcrumb ul { display: flex; list-style: none; gap: 10px; }
.breadcrumb li::after { content: '/'; margin-left: 10px; color: var(--text-light); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a:hover { color: var(--primary-color); }

/* Category Header */
.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
}
.category-header h1 { font-size: 2.5rem; margin-bottom: 15px; }
.category-header p { opacity: 0.9; font-size: 1.1rem; }

/* Sidebar */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 40px; }
.sidebar { position: sticky; top: 100px; height: fit-content; }
.sidebar-widget {
    background: var(--bg-color);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}
.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget li { padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget a:hover { color: var(--primary-color); }

/* Related Articles */
.related-articles { margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--border-color); }
.related-articles h2 { margin-bottom: 25px; }

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer h4 { font-size: 1.2rem; margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { opacity: 0.8; }
.footer a:hover { opacity: 1; color: var(--secondary-color); }
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 992px) {
    .content-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .navbar .container { flex-direction: row; justify-content: space-between; }
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    .nav-links.open { display: flex; right: 0; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 14px 16px; font-size: 1.05rem; border-bottom: 1px solid var(--border-color); border-radius: 0; }
    .nav-links a:hover { background: var(--bg-light); }
    .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 999; }
    .nav-overlay.active { display: block; }
    .hero h1 { font-size: 2rem; }
    .hero-search { flex-direction: column; }
    .hero-search button { width: 100%; }
    .article-grid { grid-template-columns: 1fr; }
    .article-header h1 { font-size: 1.8rem; }
    .category-grid { grid-template-columns: 1fr 1fr; }
    .feature-box { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .category-grid { grid-template-columns: 1fr; }
    .feature-box { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
