/* Custom App Store Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f7;
}

.navbar-apple {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    height: 44px;
}
.img-fluid {
    max-width: 100%;
    height: auto;
}
.navbar-apple .navbar-nav {
    gap: 0;
}

.navbar-apple .navbar-nav .nav-link {
    color: #1d1d1f;
    font-size: 12px;
    font-weight: 400;
    padding: 0 8px;
    height: 44px;
    line-height: 44px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.navbar-apple .navbar-nav .nav-link:hover {
    color: #0066cc;
}

.navbar-apple .navbar-brand {
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 400;
}

.navbar-apple .navbar-brand:hover {
    color: #0066cc;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    /* Force collapse to be hidden by default on mobile */
    .navbar-expand-lg .navbar-collapse {
        display: none !important;
    }
    
    /* Show collapse only when it has the 'show' class */
    .navbar-expand-lg .navbar-collapse.show {
        display: block !important;
    }
    
    /* Show hamburger button on mobile */
    .navbar-expand-lg .navbar-toggler {
        display: block !important;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 0 0 12px 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        margin-top: 1px;
        transition: all 0.3s ease;
    }
    
    .navbar-nav {
        padding: 1rem;
        /* Display items in a row with wrapping */
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        color: #1d1d1f !important;
        font-size: 15px;
        font-weight: 400;
        border-radius: 8px;
        transition: all 0.2s ease;
        white-space: nowrap;
        border: 1px solid rgba(0, 0, 0, 0.1);
        background-color: rgba(255, 255, 255, 0.8);
        margin: 0.25rem;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(0, 102, 204, 0.1);
        color: #0066cc !important;
        border-color: rgba(0, 102, 204, 0.3);
    }
    
    /* Hide desktop-only elements on mobile */
    .d-none.d-lg-flex {
        display: none !important;
    }
    
    .d-none.d-lg-block {
        display: none !important;
    }
    
    /* Show mobile brand */
    .navbar-brand.d-lg-none {
        display: block !important;
        font-size: 17px;
        font-weight: 600;
        color: #1d1d1f;
    }
    
    /* Hamburger menu styling */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
}

.app-container {
    background-color: white;
    border-radius: 18px;
    margin-top: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.app-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e7;
}

.app-icon {
    width: 175px;
    height: 175px;
    border-radius: 38px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.app-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.8"/><circle cx="80" cy="30" r="1.5" fill="white" opacity="0.6"/><circle cx="30" cy="70" r="1" fill="white" opacity="0.7"/><circle cx="70" cy="80" r="2.5" fill="white" opacity="0.5"/></svg>');
}

.app-title {
    font-size: 28px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.app-subtitle {
    color: #86868b;
    font-size: 17px;
    margin-bottom: 8px;
}

.age-rating {
    background-color: #86868b;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    margin-left: 8px;
}

.category-badge {
    background-color: #007aff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 8px;
}

.rating-container {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.stars {
    color: #ff9500;
    margin-right: 8px;
}

.rating-text {
    color: #86868b;
    font-size: 14px;
}

.price {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
}

.get-button {
    background-color: #007aff;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 12px;
}

.get-button:hover {
    background-color: #0056b3;
    color: white;
}

.screenshots-section {
    padding: 20px;
    border-bottom: 1px solid #e5e5e7;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.screenshot {
    width: 230px;
    height: 498px;
    border-radius: 22px;
    background-color: #000;
    margin-right: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid #d1d1d6;
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.description-section {
    padding: 20px;
    border-bottom: 1px solid #e5e5e7;
}

.description-text {
    color: #1d1d1f;
    line-height: 1.5;
    font-size: 17px;
}

.feature-list {
    margin-top: 16px;
}

.feature-item {
    margin-bottom: 8px;
    color: #1d1d1f;
    font-size: 17px;
}

.whats-new-section {
    padding: 20px;
    border-bottom: 1px solid #e5e5e7;
}

.version-info {
    color: #86868b;
    font-size: 14px;
    margin-bottom: 12px;
}

.ratings-section {
    padding: 20px;
    border-bottom: 1px solid #e5e5e7;
}

.rating-large {
    font-size: 64px;
    font-weight: 300;
    color: #1d1d1f;
    line-height: 1;
}

.rating-subtitle {
    color: #86868b;
    font-size: 17px;
}

.rating-count {
    color: #86868b;
    font-size: 14px;
    margin-top: 4px;
}

.info-section {
    padding: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f2f2f7;
}

.info-label {
    color: #86868b;
    font-size: 17px;
}

.info-value {
    color: #1d1d1f;
    font-size: 17px;
    text-align: right;
}

.breadcrumb {
    background: none;
    padding: 12px 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: #007aff;
    text-decoration: none;
}

.availability-notice {
    background-color: #f2f2f7;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    color: #86868b;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Carousel Styles */
.carousel {
    display: block;
}

@media (min-width: 992px) {
    .carousel {
        display: none;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: #007aff;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 122, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.carousel-indicators {
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    background-color: #007aff;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .app-header .row {
        text-align: center;
    }
    
    .app-icon {
        margin: 0 auto 20px;
    }
    
    .screenshot {
        width: 200px;
        height: 433px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .app-container {
        margin: 10px 0;
        border-radius: 12px;
    }
}

