/* Telegram Download Center - Global Styles */
:root {
    --brand-blue: #37AEE2;
    --brand-blue-dark: #0088CC;
    --white: #FFFFFF;
    --bg-light: #F5F5F5;
    --bg-dark: #1A1A2E;
    --text-dark: #222222;
    --text-light: #E0E0E0;
    --text-muted: #888888;
    --card-bg: #FFFFFF;
    --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --border-color: #E8E8E8;
    --footer-bg: #1B2838;
    --footer-text: #AAB8C2;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--brand-blue-dark);
}

/* ===== Top Navigation ===== */
.top-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-logo svg {
    width: 36px;
    height: 36px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand-blue);
    border-bottom-color: var(--brand-blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-download-nav {
    background: var(--brand-blue);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-download-nav:hover {
    background: var(--brand-blue-dark);
    color: var(--white) !important;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(180deg, #E8F4FD 0%, var(--white) 100%);
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.hero .subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.btn-hero {
    display: inline-block;
    background: var(--brand-blue);
    color: var(--white);
    padding: 14px 40px;
    border-radius: 28px;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.btn-hero:hover {
    background: var(--brand-blue-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== Features / Cards Section ===== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== News Section ===== */
.news-section {
    background: var(--bg-light);
    padding: 60px 20px;
}

.news-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.news-header h2 {
    font-size: 28px;
    font-weight: 700;
}

.news-header a {
    font-size: 15px;
    font-weight: 600;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.news-card-img {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--brand-blue), #764BA2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
}

.news-card-body {
    padding: 20px;
}

.news-card-body h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-card-body h4 a {
    color: var(--text-dark);
}

.news-card-body h4 a:hover {
    color: var(--brand-blue);
}

.news-card-body p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-card-body .date {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 20px 30px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h5 {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--footer-text);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--footer-text);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--footer-text);
}

/* ===== Download Page (apps.html) ===== */
.download-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(180deg, #E8F4FD 0%, var(--white) 100%);
}

.download-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.download-hero p {
    font-size: 18px;
    color: var(--text-muted);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.platform-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.platform-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon svg {
    width: 56px;
    height: 56px;
}

.platform-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.platform-card .version {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.platform-card .btn-dl {
    display: inline-block;
    background: var(--brand-blue);
    color: var(--white);
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
    margin-bottom: 8px;
}

.platform-card .btn-dl:hover {
    background: var(--brand-blue-dark);
    color: var(--white);
}

.platform-card .size-info {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== FAQ Page ===== */
.faq-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(180deg, #E8F4FD 0%, var(--white) 100%);
}

.faq-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.faq-hero p {
    font-size: 18px;
    color: var(--text-muted);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-blue);
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
}

.faq-item h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.faq-item ol {
    padding-left: 20px;
    margin: 0;
}

.faq-item ol li {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 4px;
}

.faq-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

/* ===== Safety Page ===== */
.safety-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(180deg, #E8F4FD 0%, var(--white) 100%);
}

.safety-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.safety-hero p {
    font-size: 18px;
    color: var(--text-muted);
}

.safety-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.safety-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 20px;
}

.safety-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.safety-item p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

/* ===== API Page ===== */
.api-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(180deg, #E8F4FD 0%, var(--white) 100%);
}

.api-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.api-hero p {
    font-size: 18px;
    color: var(--text-muted);
}

.api-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.api-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 20px;
}

.api-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.api-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.api-card a {
    font-weight: 600;
}

/* ===== Blog Page ===== */
.blog-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(180deg, #E8F4FD 0%, var(--white) 100%);
}

.blog-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.blog-item .blog-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.blog-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-item h3 a {
    color: var(--text-dark);
}

.blog-item h3 a:hover {
    color: var(--brand-blue);
}

.blog-item p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .cards-grid,
    .news-grid,
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 30px;
    }

    .cards-grid,
    .news-grid,
    .platforms-grid {
        grid-template-columns: 1fr;
    }

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

    .section-title {
        font-size: 24px;
    }
}
