/* App Download Page Styles */
.app-download-container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    font-family: 'Montserrat', sans-serif;
}

.app-download-left {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-download-right {
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* App Icon and Name */
.app-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin-bottom: 8px;
}

.app-name {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}

/* App Description */
.app-description {
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.8;
}

.app-description p {
    margin-bottom: 15px;
}

.highlight {
    font-weight: 600;
}

.highlight.green {
    color: #4CAF50;
}

.highlight.purple {
    color: #9C27B0;
}

.highlight.orange {
    color: #FF9800;
}

.highlight.sky-blue {
    color: #4FC3F7;
}

/* App Download Badges */
.app-download-badges {
    display: flex;
    justify-content: center;
    gap: 10px; /* Further reduced gap between containers */
    margin-top: 15px;
}

.app-store-container,
.play-store-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 35%; /* Even smaller width to bring them closer */
}

.qr-code {
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
    padding: 3px;
    border-radius: 4px;
    background-color: #fff;
}

.qr-code-img {
    width: 65px;
    height: 65px;
}

/* Align both containers to have the same top position */
.app-store-container,
.play-store-container {
    position: relative;
    top: 0;
}

/* Base style for all store badges */
.store-badge {
    height: 32px;
    position: relative;
    top: 12px; /* Move down 10px */
}

/* Additional offset for Apple Store badge */
.app-store-container .store-badge {
    top: 12px; /* Base 10px + original 3px offset */
}

/* Ensure both QR codes are exactly the same size */
.play-store-container .qr-code,
.app-store-container .qr-code {
    width: 71px; /* Exact same size for both QR code containers */
    height: 71px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-store-container .store-badge {
    height: 45px; /* Scaled up by 1.05x from 43px */
    transform: scale(1.05); /* Additional scaling */
    top: 5px; /* Base 12px + additional 5px */
}

/* App Screenshots Slider */
.app-screenshots-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: flex-start;
}

.slider-container {
    width: 500px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.slides {
    display: flex;
    transition: transform 0.8s ease;
}

.slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 20px;
    mix-blend-mode: multiply;
}

/* Slider Navigation */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.prev-arrow {
    left: 10%;
}

.next-arrow {
    right: 10%;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #ff6b00;
}

/* Hide medium badges on desktop by default */
.app-download-badges-medium {
    display: none;
}

/* Responsive Styles */
@media (min-width: 993px) {
    /* Default desktop layout */
}

@media (min-width: 577px) and (max-width: 992px) {
    /* Medium screens (tablet) */
    .app-download-container {
        flex-direction: column;
    }
    
    /* Keep app-download-left above app-download-right */
    .app-download-left {
        width: 100%;
        margin-bottom: -40px; /* Negative margin to move app-download-right up */
    }
    
    /* Position app-download-right and app-download-badges-medium side by side */
    .app-download-right {
        display: flex;
        width: 100%;
    }
    
    /* Hide the badges in the left section */
    .app-download-left .app-download-badges {
        display: none;
    }
    
    /* Create a wrapper for the slider and badges */
    .app-download-right {
        display: flex;
        position: relative;
        width: 100%;
    }
    
    /* Position the slider container */
    .app-screenshots-slider {
        width: 80%;
        max-width: 500px;
        position: relative;
        margin-left: 0;
        margin-right: auto;
    }
    
    /* Position badges to the right of the slider for tablet */
    .app-download-badges-medium {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: absolute;
        right: 5%;
        top: 50%; /* Center vertically */
        transform: translateY(-50%);
        width: 120px;
        height: 280px; /* Adjusted height for better spacing while maintaining center alignment */
    }
    
    /* Adjustments for smaller tablets */
    @media (min-width: 577px) and (max-width: 768px) {
        /* Fix the container position */
        .app-download-right {
            padding-left: 0;
            margin-left: 0;
        }
        
        .app-screenshots-slider {
            width: 85%;
            margin-left: 0;
            margin-right: auto;
        }
        
        .app-download-badges-medium {
            right: 0;
            width: 100px;
        }
    }
    
    /* Stack app store container on top */
    .app-download-badges-medium .app-store-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Stack play store container below */
    .app-download-badges-medium .play-store-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .app-download-badges-medium .qr-code {
        margin-bottom: 8px;
        border: 1px solid #e0e0e0;
        padding: 3px;
        border-radius: 4px;
        background-color: #fff;
        width: 71px;
        height: 71px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .app-download-badges-medium .qr-code-img {
        width: 65px;
        height: 65px;
    }
    
    .app-download-badges-medium .store-badge {
        height: 32px;
        position: relative;
        top: 12px;
    }
    
    .app-download-badges-medium .play-store-container .store-badge {
        height: 45px;
        transform: scale(1.05);
        top: 5px;
    }
}

@media (max-width: 576px) {
    /* Small screens (mobile) */
    .app-download-container {
        flex-direction: column;
    }
    
    .app-download-left {
        width: 100%;
        margin-bottom: -45px; /* Negative margin to move app-download-right up */
    }
    
    .app-download-right {
        width: 100%;
    }
    
    /* Hide original badges in left section */
    .app-download-left .app-download-badges {
        display: none;
    }
    
    /* Restructure the right section for mobile */
    .app-download-right {
        display: block;
        position: static;
    }
    
    /* Make slider take full width */
    .app-screenshots-slider {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Show and position medium badges below gallery */
    .app-download-badges-medium {
        display: flex;
        flex-direction: row;
        justify-content: center;
        position: static;
        width: 100%;
        height: auto;
        margin-top: 30px;
        transform: none;
        gap: 40px; /* Increased gap between containers */
    }
    
    /* Position app store container */
    .app-download-badges-medium .app-store-container {
        width: 40%;
        max-width: 120px;
        margin-bottom: 0;
    }
    
    /* Position play store container */
    .app-download-badges-medium .play-store-container {
        width: 40%;
        max-width: 120px;
        margin-bottom: 0;
    }
    
    /* Keep font sizes consistent with other screen sizes */
    .app-name {
        font-size: 16px;
        font-weight: 400;
    }
    
    .app-description {
        font-size: 14px;
        line-height: 1.8;
    }
    
    /* Ensure QR codes are the same size */
    .app-download-badges-medium .qr-code {
        width: 71px;
        height: 71px;
        margin: 0 auto 8px;
    }
    
    .app-download-badges-medium .qr-code-img {
        width: 65px;
        height: 65px;
    }
    
    /* Ensure store badges are properly sized */
    .app-download-badges-medium .store-badge {
        height: 32px;
        display: block;
        margin: 0 auto;
    }
    
    .app-download-badges-medium .play-store-container .store-badge {
        height: 45px;
        transform: scale(1.05);
    }
}
