/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066CC;
    --primary-purple: #7B2CBF;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #1a1a2e;
    --text-primary: #1d1d1f;
    --text-secondary: #6c757d;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body *:not(.loader):not(.download-popup):not(.popup-content) {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    background: #ffffff;
    padding: 80px 0 60px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.app-icon {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 28px;
    border: 4px solid rgba(255, 255, 255, 0.8);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.app-category {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.app-rating {
    margin-bottom: 32px;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.stars {
    color: #FFB800;
    font-size: 18px;
    letter-spacing: 2px;
}

.rating-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.rating-info {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.divider {
    color: var(--border-color);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.download-btn:hover {
    box-shadow: var(--shadow-md);
}

.download-btn.pc {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.download-btn.android {
    background: linear-gradient(135deg, #3DDC84 0%, #34A853 100%);
    color: white;
}

.download-btn.ios {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: white;
}

.btn-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.btn-label {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.btn-platform {
    font-size: 16px;
    font-weight: 700;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-screenshot {
    width: 90%;
    max-width: 550px;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

/* Info Section */
.info-section {
    background: #ffffff;
    padding: 40px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.info-item {
    text-align: center;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 16px;
}

.info-item:hover {
    box-shadow: var(--shadow-md);
}

.info-value {
    font-size: 32px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.info-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Section Header */
.section-header {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text-primary);
    padding-bottom: 16px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Screenshots Section */
.screenshots-section {
    background: #ffffff;
    padding: 80px 0;
}

.screenshots-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 16px 0 32px;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.screenshots-scroll::-webkit-scrollbar {
    height: 8px;
}

.screenshots-scroll::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 420px;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

/* Description Section */
.description-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.description-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 20px;
    max-width: 900px;
}

/* Features Section */
.features-section {
    background: #ffffff;
    padding: 80px 0;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: start;
    padding: 28px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px solid transparent;
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(102, 126, 234, 0.3);
}

.feature-icon {
    font-size: 40px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* What's New Section */
.whats-new-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.version-info {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    max-width: 900px;
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.version-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.version-date {
    font-size: 14px;
    color: var(--text-secondary);
}

.update-notes ul {
    list-style: none;
    padding: 0;
}

.update-notes li {
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.6;
    padding-left: 8px;
}

/* Ratings Section */
.ratings-section {
    background: #ffffff;
    padding: 80px 0;
}

.ratings-summary {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    max-width: 900px;
}

.rating-score {
    text-align: center;
    padding: 32px;
    background: #f8f9fa;
    border-radius: 20px;
}

.score-number {
    font-size: 80px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1;
}

.score-stars {
    font-size: 20px;
    color: #FFB800;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.score-count {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bar-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    width: 24px;
}

.bar-fill {
    flex: 1;
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
}

.bar-progress {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Requirements Section */
.requirements-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    max-width: 900px;
    box-shadow: var(--shadow-sm);
}

.requirement-row {
    display: flex;
    justify-content: space-between;
    padding: 20px 28px;
    background: #ffffff;
    transition: background 0.2s ease;
}

.requirement-row:hover {
    background: #f8f9fa;
}

.req-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 600;
}

.req-value {
    font-size: 16px;
    color: var(--text-primary);
    text-align: right;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-content {
        text-align: center;
        order: 1;
    }
    
    .app-icon {
        margin: 0 auto 28px;
    }
    
    .rating-stars,
    .rating-info {
        justify-content: center;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .ratings-summary {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .app-title {
        font-size: 42px;
    }
    
    .section-header {
        font-size: 28px;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .info-item {
        padding: 16px;
    }
    
    .info-value {
        font-size: 24px;
    }
    
    .screenshot-item {
        width: 320px;
    }
    
    .download-buttons {
        width: 100%;
    }
    
    .download-btn {
        width: 100%;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .version-info {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 48px 0 40px;
    }
    
    .app-title {
        font-size: 32px;
    }
    
    .app-icon {
        width: 100px;
        height: 100px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .section-header {
        font-size: 24px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshot-item {
        width: 280px;
    }
    
    .btn-icon {
        width: 28px;
        height: 28px;
    }
    
    .btn-platform {
        font-size: 14px;
    }
    
    .popup-content {
        padding: 30px 35px;
        max-width: 320px;
    }
    
    .popup-content h2 {
        font-size: 22px;
    }
    
    .popup-content p {
        font-size: 14px;
    }
    
    .loader {
        width: 50px;
        height: 50px;
        border-width: 5px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Download Popup */
.download-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.download-popup.fade-out {
    animation: fadeOut 0.3s ease;
}

.popup-content {
    background: white;
    padding: 50px 60px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
}

.popup-content h2 {
    margin: 20px 0 10px;
    font-size: 28px;
    color: #333;
}

.popup-content p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Loader Animation */
.loader {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #667eea;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
