/* ========================================
   VANG68 LANDING PAGE STYLES
   ======================================== */

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1A1A1A;
    --secondary-color: #90CAF9;
    --accent-color: #4CAF50;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header === */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--secondary-color);
}

.btn-download-nav {
    background: var(--accent-color);
    color: white !important;
    padding: 8px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-download-nav:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle .material-icons {
    font-size: 28px;
    color: var(--text-primary);
}

/* === Mobile Menu === */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    z-index: 2000;
    padding: 20px;
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-bottom: 20px;
}

.close-menu .material-icons {
    font-size: 28px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-nav a:hover {
    background: var(--bg-light);
}

.btn-download-mobile {
    background: var(--accent-color);
    color: white !important;
    text-align: center;
    font-weight: 600;
}

/* === Hero Section === */
.hero {
    background: var(--bg-white);
    padding: 60px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-left {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.hero-info h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.developer {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 20px;
}

.meta-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #ffa000;
    font-size: 18px;
}

.rating-text {
    font-weight: 700;
    font-size: 18px;
}

.downloads, .age-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.badge {
    background: var(--border-color);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

/* === Buttons === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    color: white;
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 16px 48px;
    font-size: 18px;
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 8px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

.version-info {
    color: var(--text-secondary);
    font-size: 14px;
}

.requirements {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

/* === Screenshots === */
.screenshots {
    padding: 60px 0;
    background: var(--bg-white);
}

.screenshots h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.screenshot-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-btn {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--bg-light);
    box-shadow: var(--shadow-md);
}

.carousel-btn .material-icons {
    font-size: 28px;
    color: var(--text-primary);
}

.screenshot-container {
    flex: 1;
    overflow: hidden;
}

.screenshot-wrapper {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.screenshot-item {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 250px;
}

.screenshot-item img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* === About === */
.about {
    padding: 60px 0;
}

.about h2 {
    font-size: 32px;
    margin-bottom: 24px;
}

.about-content {
    max-width: 800px;
}

.description {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.expanded-content.active {
    max-height: 1000px;
}

.expanded-content h3 {
    margin: 24px 0 16px;
    color: var(--primary-color);
}

.expanded-content ul {
    list-style: none;
    padding-left: 0;
}

.expanded-content li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.expanded-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.update-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.update-info .material-icons {
    color: var(--secondary-color);
}

/* === Features === */
.features {
    padding: 60px 0;
    background: var(--bg-white);
}

.features h2 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon .material-icons {
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === Reviews === */
.reviews {
    padding: 60px 0;
}

.reviews h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.rating-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
}

.rating-score h1 {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stars-large {
    color: #ffa000;
    font-size: 24px;
    margin: 12px 0;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rating-bar span:first-child {
    width: 20px;
    font-weight: 500;
}

.bar {
    flex: 1;
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: var(--accent-color);
}

.rating-bar span:last-child {
    width: 40px;
    text-align: right;
    color: var(--text-secondary);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.reviewer-info strong {
    display: block;
    margin-bottom: 4px;
}

.review-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
}

.review-meta .stars {
    color: #ffa000;
}

.date {
    color: var(--text-secondary);
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === App Info === */
.app-info {
    padding: 60px 0;
    background: var(--bg-white);
}

.app-info h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.info-item .material-icons {
    font-size: 32px;
    color: var(--secondary-color);
}

.info-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.info-item p {
    color: var(--text-secondary);
}

/* === Download CTA === */
.download-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}

.cta-content .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-content .btn-primary:hover {
    transform: scale(1.05);
}

/* === Download Page === */
.download-page {
    padding: 60px 0;
}

.download-header {
    text-align: center;
    margin-bottom: 60px;
}

.app-icon-large {
    width: 150px;
    height: 150px;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.download-header h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.version-badge {
    display: inline-block;
    background: var(--bg-light);
    padding: 8px 24px;
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-weight: 500;
}

.download-button-container {
    text-align: center;
    margin-bottom: 60px;
}

.btn-download-apk {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-color);
    color: white;
    padding: 20px 60px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-download-apk:hover {
    background: #45a049;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.download-note {
    margin-top: 16px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* === Installation Guide === */
.installation-guide {
    max-width: 900px;
    margin: 0 auto 60px;
}

.installation-guide h2 {
    font-size: 32px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-section {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.guide-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--primary-color);
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.guide-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.guide-content li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.method-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.warning-box, .info-box, .success-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-top: 16px;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffa000;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid var(--secondary-color);
}

.success-box {
    background: #e8f5e9;
    border-left: 4px solid var(--accent-color);
}

.permissions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.permission-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.permission-item .material-icons {
    font-size: 32px;
    color: var(--secondary-color);
}

.permission-item strong {
    display: block;
    margin-bottom: 4px;
}

.permission-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

.permission-note {
    color: var(--text-secondary);
    font-style: italic;
}

/* === Troubleshooting === */
.troubleshooting {
    max-width: 900px;
    margin: 0 auto 60px;
}

.troubleshooting h2 {
    font-size: 32px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question .material-icons {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question .material-icons {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 24px;
}

.faq-answer ul {
    list-style: none;
    padding-left: 0;
}

.faq-answer li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.faq-answer li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--secondary-color);
    font-weight: bold;
}

/* === Requirements & Support === */
.requirements, .support-section {
    max-width: 900px;
    margin: 0 auto 60px;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.requirements h2, .support-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.req-item {
    text-align: center;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.req-item .material-icons {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.req-item strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.req-item p {
    color: var(--text-secondary);
}

.support-section {
    text-align: center;
}

.support-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.support-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.download-again {
    text-align: center;
    margin-top: 40px;
}

/* === Footer === */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* Header Right Wrapper */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto; /* ชิดขวา */
}

/* === Responsive Design === */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-right {
        align-items: center;
        text-align: center;
    }
    
    .rating-summary {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .screenshot-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-info h1 {
        font-size: 36px;
    }
    
    .screenshot-item {
        flex: 0 0 calc(100% - 20px);
        min-width: 100%;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .download-header h1 {
        font-size: 32px;
    }
    
    .btn-download-apk {
        padding: 16px 40px;
        font-size: 18px;
    }
    
    .support-options {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-icon {
        width: 80px;
        height: 80px;
    }
    
    .hero-info h1 {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .meta-info {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        width: 100%;
    }
    
    .btn-large {
        padding: 14px 32px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }
    
    .screenshots, .about, .features, .reviews, .app-info {
        padding: 40px 0;
    }
    
    section h2 {
        font-size: 24px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .app-icon-large {
        width: 100px;
        height: 100px;
    }
    
    .download-header h1 {
        font-size: 24px;
    }
    
    .guide-section {
        padding: 20px;
    }
    
    .guide-section h3 {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .method-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .screenshots, .about, .features, .reviews {
    animation: fadeIn 0.6s ease-out;
}

/* === Print Styles === */
@media print {
    .header, .footer, .download-cta, .mobile-menu {
        display: none;
    }
    
    .container {
        max-width: 100%;
    }
}