/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.5;
    font-size: 14px;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    list-style-position: inside;
    padding-left: 20px;
}

h1, h2, h3, h4, h5 {
    margin-bottom: 10px;
    font-weight: 600;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}


/* Header */
.app-header {
    background-color: white;
    color: grey;
    height: 44px;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 15px;
}

.logo {
    margin-right: 30px;
}

.logo img {
    height: 20px;
    width: auto;
}

.desktop-nav {
    display: flex;
    justify-content: center;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.desktop-nav li {
    margin: 0 20px;
}

.desktop-nav a {
    color: black;
    font-size: 12px;
    opacity: 1;
    transition: opacity 0.2s;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.desktop-nav a:hover {
    opacity: 0.7;
    text-decoration: none;
}

.search-icon, .bag-icon {
    margin-left: 30px;
    font-size: 16px;
    cursor: pointer;
    color: black;
}

.app-header {
    background-color: white;
    color: grey;
    height: 44px;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 15px;
}

.logo {
    height: 44px;
    display: flex;
    align-items: center;
    padding-left: 15px;
}

.logo img {
    height: 20px;
    width: auto;
}

.desktop-nav {
    display: flex;
    justify-content: center;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.desktop-nav li {
    margin: 0 20px;
}

.desktop-nav a {
    color: black;
    font-size: 12px;
    opacity: 1;
    transition: opacity 0.2s;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.desktop-nav a:hover {
    opacity: 0.7;
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
}

.search-icon, .bag-icon {
    margin-left: 20px;
    font-size: 16px;
    cursor: pointer;
    color: grey;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: 44px;
}

.hamburger-icon {
    display: none;
    font-size: 16px;
    cursor: pointer;
    color: black;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 200;
    max-height: calc(100vh - 44px);
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #f2f2f2;
}

.mobile-menu a {
    display: block;
    padding: 14px 20px;
    color: black;
    text-decoration: none;
    font-size: 17px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .hamburger-icon {
        display: flex;
    }
    
    .header-container {
        padding: 0;
    }
    
    .logo {
        padding-left: 20px;
    }
}

/* Main content */
.app-store-preview {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}

h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

.app-store-banner {
    background-color: #f5f5f7;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* App Info */
.app-info-container {
    margin-bottom: 30px;
}

.app-info {
    display: flex;
    align-items: flex-start;
}

.app-icon img {
    width: 130px;
    height: 130px;
    border-radius: 22px;
    margin-right: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-details h2 {
    font-size: 20px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.age-rating {
    background-color: #f5f5f7;
    font-size: 12px;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 8px;
    border: 1px solid #d2d2d7; /* Adding border for age rating */
}

.app-tagline {
    color: #86868b;
    margin-bottom: 5px;
}

.developer {
    color: #0066cc;
    margin-bottom: 5px;
}

.designed-for {
    font-size: 12px;
    color: #86868b;
    margin-bottom: 10px;
}

.category-badges {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.badge {
    display: inline-block;
    background-color: #f5f5f7;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 5px;
    width: fit-content;
}

.rating-stars {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.rating-stars i {
    color: #fa3;
    margin-right: 2px;
}

.rating-number {
    margin-left: 5px;
    color: #86868b;
    font-size: 13px;
}

.download-buttons {
    margin-top: 15px;
}

.download-button {
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.download-button:hover {
    background-color: #0055b3;
}

.in-app-notice {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #86868b;
}

/* Screenshots */
.screenshots {
    margin-bottom: 30px;
}

.screenshots h3 {
    border-bottom: none; /* Removing purple underline */
}

.screenshot-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
}

.screenshot {
    position: relative;
    min-width: 250px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    background-color: rgba(103, 58, 183, 0.8);
    color: white;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
}

/* App Description */
.app-description {
    margin-bottom: 30px;
    line-height: 1.6;
}

.app-description p {
    margin-bottom: 10px;
}

/* What's New */
.whats-new {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.update-note {
    margin-bottom: 10px;
}

.version-info {
    font-size: 12px;
    color: #86868b;
}

/* Ratings */
.ratings {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.rating-summary {
    display: flex;
    margin-bottom: 20px;
}

.rating-average {
    text-align: left;
    min-width: 120px;
}

.rating-average h4 {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 5px;
    font-weight: bold;
    color: #1d1d1f;
}

.rating-average p {
    font-size: 13px;
    color: #86868b;
}

.rating-bars {
    flex-grow: 1;
    padding: 0 20px;
    align-self: center;
}

.rating-bar-container {
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rating-bar-5, .rating-bar-4, .rating-bar-3, .rating-bar-2, .rating-bar-1 {
    height: 6px;
    background-color: #e5e5e5;
    border-radius: 3px;
    position: relative;
    margin-bottom: 8px;
}

.rating-bar-5::before, .rating-bar-4::before, .rating-bar-3::before, .rating-bar-2::before, .rating-bar-1::before {
    content: "";
    position: absolute;
    height: 100%;
    background-color: #8e8e93;
    border-radius: 3px;
}

.rating-bar-5::before { width: 80%; }
.rating-bar-4::before { width: 15%; }
.rating-bar-3::before { width: 3%; }
.rating-bar-2::before { width: 1%; }
.rating-bar-1::before { width: 1%; }

.rating-count {
    min-width: 80px;
    color: #86868b;
    font-size: 15px;
    text-align: right;
    align-self: center;
}

.user-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.review {
    background-color: #f5f5f7;
    border-radius: 10px;
    padding: 15px;
}

.review-header {
    margin-bottom: 10px;
}

.review-stars {
    display: flex;
    margin-bottom: 5px;
}

.review-stars i {
    color: #fa3;
    margin-right: 2px;
}

.review-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.reviewer {
    font-size: 12px;
    color: #86868b;
}

.review-content {
    font-size: 13px;
    line-height: 1.5;
}

/* App Privacy */
.app-privacy {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.privacy-note {
    margin-bottom: 20px;
    line-height: 1.6;
}

.privacy-note a {
    font-weight: normal;
}

.data-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.data-category {
    background-color: #f5f5f7;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: 450px;
}

.data-icon {
    background-color: transparent;
    color: #0066cc;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 2px solid #0066cc;
    font-size: 16px;
}

.data-category h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
}

.data-category p {
    margin-bottom: 10px;
    font-size: 13px;
    text-align: center;
}

.data-category ul {
    font-size: 13px;
    list-style: none;
    padding: 0;
    text-align: center;
}

.data-category li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.privacy-practices-note {
    font-size: 13px;
    color: #86868b;
}

/* Information */
.information {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item h4 {
    color: #86868b;
    font-size: 12px;
    margin-bottom: 5px;
}

.info-item h5 {
    font-size: 13px;
    margin-top: 10px;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 13px;
    margin-bottom: 5px;
}

.info-item ol {
    font-size: 13px;
    margin-top: 5px;
}

.developer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px auto;
}

.developer-link {
    color: #0066cc;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-right: 18px;
}

.developer-link::after {
    content: "↗";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.developer-link:hover {
    text-decoration: underline;
}

/* More By Developer & You Might Also Like */
.more-by-developer, .you-might-also-like {
    margin-bottom: 30px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.app-card {
    text-align: center;
}

.app-card img {
    width: 100%;
    border-radius: 22px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-name {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 3px;
}

.app-category {
    font-size: 11px;
    color: #86868b;
}

/* Footer */
.app-footer {
    background-color: #f5f5f7;
    padding: 20px;
    font-size: 12px;
    color: #86868b;
    max-width: 980px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d2d2d7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #86868b;
}

/* Responsive styles */
@media (max-width: 991px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
        margin-left: auto;
    }

    .menu-button {
        background: none;
        border: none;
		color: #f5f5f7;
        cursor: pointer;
        font-size: 16px;
    }

    .app-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .app-icon {
        margin-bottom: 15px;
    }

    .app-icon img {
        margin-right: 0;
    }

    .category-badges {
        align-items: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .screenshot-container {
        padding-bottom: 15px;
    }

    .screenshot {
        min-width: 200px;
    }

    .rating-summary {
        flex-direction: column;
        align-items: center;
    }

    .rating-bars {
        width: 100%;
        margin: 15px 0;
    }

    .rating-count {
        text-align: center;
    }

    .user-reviews {
        grid-template-columns: 1fr;
    }

    .data-categories {
        grid-template-columns: 1fr;
    }

    .app-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}

@media (max-width: 767px) {
    .app-store-preview {
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    .screenshot {
        min-width: 180px;
    }

    .screenshot-overlay {
        font-size: 11px;
        padding: 5px 8px;
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .app-icon img {
        width: 100px;
        height: 100px;
    }

    .app-details h2 {
        font-size: 18px;
    }

    .screenshot {
        min-width: 150px;
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .review {
        padding: 10px;
    }

    .data-category {
        padding: 15px;
    }

    .developer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Developer Response styles */
.developer-response {
    margin-top: 10px;
    border-top: 1px solid #e5e5e5;
    padding-top: 10px;
}

.response-title {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 3px;
}

.response-content {
    font-size: 13px;
    line-height: 1.5;
}

/* Additional fixes for App Privacy section */
.data-category i.fas.fa-id-card {
    margin-right: 5px;
    color: #070708;
}

/* Fix for Ratings stars in reviews to match screenshot */
.review-stars .fas.fa-star {
    color: #fa3;
}

.review-stars .far.fa-star {
    color: #e5e5e5;
}

hr {
    border: none;
    height: 1px;
    background-color: #d2d2d7;
    margin: 20px 0;
}