/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #121212; /* Deep dark background */
    color: #e3e3e3; /* Light grey text */
    padding-bottom: 50px;
}

.container {
    max-width: 600px; /* Limits width on desktop so it looks like a mobile app */
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav Bar */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    font-size: 20px;
    color: #e3e3e3;
    max-width: 600px;
    margin: 0 auto;
}

.right-icons i {
    margin-left: 20px;
}

/* App Header */
.app-header {
    display: flex;
    align-items: flex-start;
    margin-top: 10px;
    margin-bottom: 20px;
}

.app-icon {
    width: 72px;
    height: 72px;
    border-radius: 15px; /* Rounded corners like Play Store */
    margin-right: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.app-info h1 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 2px;
}

.dev-name {
    color: #8ab4f8; /* Google Link Blue */
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.ad-badge {
    font-size: 12px;
    color: #9aa0a6;
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-right: 20px; /* Slight padding to balance */
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.stat-value i {
    font-size: 10px;
}

.stat-label {
    font-size: 12px;
    color: #9aa0a6;
}

.stat-divider {
    width: 1px;
    height: 24px;
    background-color: #5f6368;
}

/* Install Button */
.action-area {
    margin-bottom: 30px;
}

.install-btn {
    width: 100%;
    background-color: #8ab4f8; /* Play Store Blue */
    color: #202124; /* Dark text for contrast */
    border: none;
    padding: 10px 0;
    border-radius: 20px; /* Pill shape */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.install-btn:active {
    background-color: #7697d1;
}

/* Screenshots Carousel */
.screenshot-carousel {
    display: flex;
    overflow-x: auto; /* Allows horizontal scrolling */
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 10px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.screenshot-carousel::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.screenshot-carousel img {
    height: 350px; /* Fixed height */
    border-radius: 8px;
    width: auto;
}

/* About Section */
.about-section {
    margin-bottom: 30px;
}

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

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

.description {
    font-size: 14px;
    color: #e3e3e3;
    line-height: 1.5;
    margin-bottom: 20px;
}

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

.tag {
    border: 1px solid #5f6368;
    border-radius: 15px;
    padding: 6px 12px;
    font-size: 13px;
    color: #e3e3e3;
}

/* Contact Section */
.contact-section {
    margin-top: 20px;
}

.contact-list {
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
}

.contact-item i {
    width: 40px;
    color: #9aa0a6;
    font-size: 20px;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text span {
    font-size: 14px;
}

.contact-text small {
    color: #9aa0a6;
    font-size: 13px;
    margin-top: 2px;
}

.dev-details {
    margin-top: 20px;
    font-size: 13px;
    color: #9aa0a6;
    line-height: 1.6;
}

.dev-details h3 {
    font-size: 14px;
    color: #e3e3e3;
    margin-bottom: 10px;
}


/* --- DETAILS PAGE STYLES --- */

.details-nav {
    display: flex;
    align-items: center;
    padding: 15px 24px;
    background-color: #121212;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #303030; /* Subtle separator */
}

.back-btn {
    color: #e3e3e3;
    font-size: 20px;
    margin-right: 20px;
    text-decoration: none;
}

.nav-title h1 {
    font-size: 16px;
    font-weight: 500;
}

.nav-title span {
    font-size: 12px;
    color: #9aa0a6;
}

.search-icon {
    margin-left: auto;
    font-size: 18px;
    color: #e3e3e3;
}

.details-container {
    padding: 0 24px 40px 24px;
    max-width: 600px;
    margin: 0 auto;
}

.detail-section {
    margin-bottom: 30px;
    padding-top: 20px;
}

.detail-section h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-text {
    font-size: 14px;
    color: #e3e3e3;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* What's New */
.whats-new-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.dot {
    height: 8px;
    width: 8px;
    background-color: #8ab4f8; /* The blue notification dot */
    border-radius: 50%;
    display: inline-block;
}

.whats-new-list {
    list-style: none;
    padding-left: 10px;
}

.whats-new-list li::before {
    content: "- ";
}

.whats-new-list li {
    font-size: 14px;
    color: #e3e3e3;
    line-height: 1.6;
}

/* More Info / Ratings */
.rating-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.age-badge {
    border: 1px solid #e3e3e3;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
}

.rating-text p {
    font-size: 14px;
}

.sub-text {
    color: #9aa0a6;
    font-size: 12px;
    margin-top: 4px;
}

.learn-more {
    color: #8ab4f8;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
}

/* App Info Grid */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.info-row .label {
    color: #e3e3e3;
    flex: 1;
}

.info-row .value {
    color: #e3e3e3;
    flex: 1;
    text-align: right;
}

.see-more {
    color: #8ab4f8;
    text-decoration: none;
    flex: 1;
    text-align: right;
}

/* Compatibility Section */
.compat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.device-card {
    margin-top: 15px;
}

.device-header {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 20px;
}

.compat-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.compat-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.compat-row .label {
    color: #9aa0a6;
}

.compat-row .value {
    text-align: right;
}

.highlight {
    font-weight: 500;
}
/* --- ACCORDION STYLES --- */

/* Hides the content */
.hidden {
    display: none;
}

/* Rotates the arrow 180 degrees when expanded */
.rotate-up {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Ensures the arrow rotates back smoothly */
#support-arrow {
    transition: transform 0.3s ease;
}

/* --- IMPROVED ACCORDION STYLES --- */

.support-wrapper {
    max-height: 1000px; /* Large enough to fit content */
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease;
}

/* This class will be applied when we want to hide it */
.support-wrapper.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none; /* Prevents clicking links while hidden */
}

/* Smooth Arrow Rotation */
#support-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-up {
    transform: rotate(180deg);
}

/* --- PERMISSIONS PAGE STYLES --- */

.permission-intro {
    font-size: 14px;
    color: #e3e3e3;
    margin: 20px 0;
}

.permission-group {
    margin-bottom: 30px;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.group-header i {
    font-size: 24px;
    color: #9aa0a6;
    width: 24px;
    text-align: center;
}

.group-header h2 {
    font-size: 18px;
    font-weight: 400;
}

.permission-list {
    list-style: none;
    padding-left: 64px;
    /* Aligns with the text after the icon */
}

.permission-list li {
    font-size: 14px;
    color: #9aa0a6;
    margin-bottom: 8px;
    line-height: 1.4;
}

.permission-list li::before {
    content: "• ";
    margin-right: 5px;
}

.permission-footer {
    margin-top: 50px;
    border-top: 1px solid #303030;
    padding-top: 20px;
}

.permission-footer p {
    font-size: 12px;
    color: #9aa0a6;
    line-height: 1.5;
    margin-bottom: 30px;
}

.learn-more-center {
    display: block;
    text-align: center;
    color: #e3e3e3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}


.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 600px; /* Match container */
    left: 50%;
    transform: translateX(-50%);
    background-color: #121212;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #303030;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #9aa0a6;
    font-size: 12px;
}

.nav-item i { font-size: 20px; margin-bottom: 4px; }

.active-nav { color: #8ab4f8; }

.search-pill {
    background-color: #004a77; /* Dark blue pill background */
    padding: 4px 20px;
    border-radius: 20px;
    margin-bottom: 4px;
}


/* --- RESET & GLOBAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', sans-serif; }
body { background-color: #121212; color: #e3e3e3; padding-bottom: 80px; }

/* --- RESPONSIVE CONTAINER --- */
.container {
    width: 100%;
    max-width: 480px; /* Standard Mobile View width */
    margin: 0 auto;
    padding: 0 24px;
}

/* Adjust for Desktop */
@media (min-width: 768px) {
    .container {
        max-width: 550px; /* Slightly wider for tablets/desktop */
        padding: 40px 24px;
    }
}

/* --- TOP PLANE SPACER --- */
.top-spacer { height: 24px; }

/* --- HEADER --- */
.app-header { display: flex; align-items: flex-start; margin-bottom: 24px; }
.app-icon { width: 72px; height: 72px; border-radius: 16px; margin-right: 20px; }
.app-info h1 { font-size: 24px; font-weight: 500; margin-bottom: 4px; }
.dev-name { color: #8ab4f8; text-decoration: none; font-size: 14px; font-weight: 500; display: block; }

/* --- STATS --- */
.stats-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.stat-item { text-align: center; flex: 1; }
.stat-value { font-size: 14px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 4px; }
.stat-label { font-size: 12px; color: #9aa0a6; margin-top: 4px; }
.stat-divider { width: 1px; height: 24px; background-color: #3c4043; }

/* --- INSTALL BUTTON --- */
.install-btn { width: 100%; background-color: #8ab4f8; color: #121212; border: none; padding: 10px; border-radius: 20px; font-weight: 600; cursor: pointer; transition: 0.2s; }

/* --- CAROUSEL --- */
.screenshot-carousel { display: flex; overflow-x: auto; gap: 12px; margin-top: 24px; scrollbar-width: none; }
.screenshot-carousel img { height: 320px; border-radius: 8px; }

/* --- ABOUT & SUPPORT --- */
.about-section, .contact-section { margin-top: 32px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; cursor: pointer; }
.section-header h2 { font-size: 18px; font-weight: 500; }
.description { font-size: 14px; color: #bdc1c6; line-height: 1.5; }
.tags { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.tag { border: 1px solid #3c4043; padding: 6px 12px; border-radius: 16px; font-size: 12px; }

/* --- LINK STYLING --- */
.clean-link { color: #8ab4f8; text-decoration: none; font-weight: 500; }
.dev-web-link { color: #9aa0a6; text-decoration: none; font-size: 13px; }
.arrow-link { color: #e3e3e3; }

/* --- ACCORDION LOGIC --- */
.support-wrapper { max-height: 1200px; opacity: 1; overflow: hidden; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.support-wrapper.collapsed { max-height: 0; opacity: 0; }
.rotate-up { transform: rotate(180deg); transition: 0.3s; }
.contact-item { display: flex; gap: 20px; padding: 16px 0; }
.contact-item i { color: #9aa0a6; font-size: 18px; width: 20px; text-align: center; }
.contact-text span { font-size: 14px; display: block; }
.contact-text small { color: #9aa0a6; font-size: 13px; }
.dev-details { margin-top: 20px; border-top: 1px solid #3c4043; padding-top: 16px; color: #9aa0a6; font-size: 13px; line-height: 1.8; }

/* --- BOTTOM NAV (FIXED) --- */
.bottom-nav { position: fixed; bottom: 0; width: 100%; max-width: 480px; left: 50%; transform: translateX(-50%); background-color: #121212; display: flex; justify-content: space-around; padding: 12px 0; border-top: 1px solid #3c4043; z-index: 1000; }
.nav-item { color: #9aa0a6; text-align: center; font-size: 11px; flex: 1; }
.nav-item i { font-size: 18px; margin-bottom: 4px; display: block; }
.active-nav { color: #8ab4f8; }
.search-pill { background-color: rgba(138, 180, 248, 0.15); border-radius: 20px; padding: 4px 0; margin-bottom: 4px; width: 60px; margin: 0 auto 4px; }


/* --- DETAILS PAGE ADDITIONS --- */

.plane-header {
    background-color: #121212;
    padding: 16px 0;
    border-bottom: 1px solid #303030;
    margin-bottom: 10px;
}

.back-text {
    color: #8ab4f8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: inline-block;
}

.nav-title h1 {
    font-size: 18px;
    font-weight: 500;
}

.nav-title span {
    font-size: 13px;
    color: #9aa0a6;
}

.detail-section {
    padding: 24px 0;
    border-bottom: 1px solid #303030;
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h2 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #e3e3e3;
}

.detail-text {
    font-size: 14px;
    color: #9aa0a6;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* App Info Grid */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.info-row .label {
    color: #9aa0a6;
}

.info-row .value {
    color: #e3e3e3;
    text-align: right;
}

.see-more, .learn-more {
    color: #8ab4f8;
    text-decoration: none;
    font-weight: 500;
}

/* Dots and Badges */
.dot {
    height: 8px;
    width: 8px;
    background-color: #8ab4f8;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
}

.age-badge {
    border: 1px solid #9aa0a6;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 3px;
    margin-right: 12px;
}

.rating-info {
    display: flex;
    align-items: flex-start;
}

.sub-text {
    font-size: 12px;
    color: #9aa0a6;
    margin: 4px 0 8px 0;
}

/* Compatibility */
.device-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 12px 0;
    color: #e3e3e3;
}

.compat-row .highlight {
    color: #8ab4f8;
    font-weight: 500;
}
 /* --- UPDATED STATS ROW (SCROLLABLE) --- */
.stats-row {
    display: flex;
    align-items: center;
    overflow-x: auto;         /* Allows scrolling to the left/right */
    white-space: nowrap;      /* Keeps everything in one line */
    gap: 8px;
    padding-bottom: 10px;     /* Slight padding for the scroll area */
    margin-bottom: 24px;
    scrollbar-width: none;    /* Hides scrollbar on Firefox */
}

.stats-row::-webkit-scrollbar {
    display: none;            /* Hides scrollbar on Chrome/Safari/Android */
}

.stat-item {
    flex: 0 0 auto;           /* CRITICAL: Prevents items from shrinking */
    text-align: center;
    min-width: 90px;          /* Ensures each item has enough space */
    padding: 0 10px;
}

.stat-divider {
    flex: 0 0 auto;           /* Keeps dividers from disappearing */
    width: 1px;
    height: 24px;
    background-color: #3c4043;
}

.stat-value {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #e3e3e3;
}

.stat-label {
    font-size: 12px;
    color: #9aa0a6;
    margin-top: 4px;
}


.stat-size {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-size i {
    font-size: 12px;
}

.size-text {
    font-size: 14px;
    font-weight: 500;
}