:root {
    /* Light Theme (Default) */
    --bg-primary: #ffffff;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --icon-color: #5f6368;
    --star-color: #202124;
    --btn-bg: #1a73e8; /* Default Play Store Blue */
    --btn-text: #ffffff;
    --bg-overlay: rgba(255, 255, 255, 0.9);
    
    /* App Gradient */
    --gradient-app: linear-gradient(135deg, #facc15, #f97316, #ec4899);
}

.dark-mode {
    --bg-primary: #202124;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --border-color: #3c4043;
    --icon-color: #9aa0a6;
    --star-color: #e8eaed;
    --btn-bg: #ffffff; /* White button in dark mode */
    --btn-text: #202124;
    --bg-overlay: rgba(32, 33, 36, 0.9);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Desktop Warning */
#desktop-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#desktop-warning.hidden {
    display: none !important;
}

.warning-box {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    max-width: 400px;
}

.warning-box i {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.warning-box h2 {
    margin-bottom: 1rem;
}

.warning-box p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* App Container limits width on larger screens for neatness, though it's mobile focused */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    color: var(--icon-color);
}

.top-icons {
    display: flex;
    gap: 16px;
}

.top-bar i {
    font-size: 24px;
    cursor: pointer;
}

/* Header */
.app-header {
    display: flex;
    padding: 0 24px 24px 24px;
    gap: 24px;
}

.app-icon img {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    object-fit: cover;
}

.app-title-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.app-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.app-developer {
    color: #00875f; /* Play store dev green */
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}
.dark-mode .app-developer {
    color: #81c995;
}

.app-ads-info {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Stats */
.app-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 24px;
    gap: 16px;
    overflow-x: auto;
    white-space: nowrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.star-icon {
    font-size: 12px !important;
}

.age-icon {
    height: 16px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-divider {
    width: 1px;
    height: 24px;
    background-color: var(--border-color);
}

/* Install Action */
.install-section {
    padding: 16px 24px;
}

.install-btn {
    width: 100%;
    background-color: var(--btn-bg);
    border: none;
    border-radius: 24px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.light-mode .install-btn {
    background-color: #000000; /* User wanted black in light mode */
}

.dark-mode .install-btn {
    background-color: #ffffff; /* White in dark mode */
}

/* Gradient Text for Install Button */
.install-text {
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    background: var(--gradient-app);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.install-btn:active {
    transform: scale(0.98);
}

.pc-play-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-top: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

.pc-play-notice i {
    color: #00875f;
    font-size: 20px;
}
.dark-mode .pc-play-notice i {
    color: #81c995;
}

/* Media Carousel */
.media-section {
    padding: 16px 0;
}

.media-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px 16px 24px;
}

.media-header h3 {
    font-size: 18px;
    font-weight: 500;
}

.carousel-arrows i {
    color: var(--icon-color);
    cursor: pointer;
}

.media-carousel {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 0 24px 16px 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.media-carousel::-webkit-scrollbar {
    display: none; /* Chrome */
}

.media-item {
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.media-item img {
    height: 200px;
    width: auto;
    display: block;
}

.video-item .play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.video-item .play-btn-overlay i {
    font-size: 32px;
}

/* About Section */
.about-section {
    padding: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    cursor: pointer;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 500;
}

.section-header i {
    color: var(--icon-color);
}

.about-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}
