/* App Download Section - Aligned with other sections */
.app-download-section {
    /* Uses existing .section padding from public.css */
}

.app-download-section .app-icon-wrapper {
    display: inline-flex;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a3a6e 0%, #2d5492 100%);
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(26, 58, 110, 0.2);
}

.app-download-section .app-icon-wrapper i {
    font-size: 40px;
    color: white;
}

.app-download-section .section-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
}

.app-download-section .app-download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Clear, prominent app store buttons */
.app-store-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 200px;
    border: 2px solid;
}

.app-store-button i {
    font-size: 32px;
}

.store-text {
    text-align: left;
}

.rtl .store-text {
    text-align: right;
}

.store-small {
    display: block;
    font-size: 12px;
    opacity: 0.9;
}

.store-large {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

/* Apple App Store button */
.apple-store {
    background: #000;
    color: white;
    border-color: #000;
}

.apple-store:hover {
    background: #333;
    color: white;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Google Play button */
.google-play {
    background: #fff;
    color: #333;
    border-color: #ddd;
}

.google-play:hover {
    background: #f8f9fa;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.google-play i {
    background: linear-gradient(45deg, #ea4335 25%, #4285f4 25%, #4285f4 50%, #fbbc04 50%, #fbbc04 75%, #34a853 75%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Design for App Store Buttons */
@media (max-width: 768px) {
    .app-store-button {
        min-width: 160px;
        padding: 14px 20px;
    }
    
    .app-store-button i {
        font-size: 28px;
    }
    
    .store-large {
        font-size: 18px;
    }
    
    .app-download-section .app-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .app-download-section .app-icon-wrapper i {
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .app-download-section .app-download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .app-store-button {
        width: 100%;
        max-width: 280px;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Smart App Banner - Keep it minimal */
.smart-app-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a3a6e 0%, #2d5492 100%);
    color: white;
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: slideDown 0.3s ease-out;
    display: flex;
    align-items: center;
    min-height: 65px;
}

.app-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.app-banner-text {
    flex: 1;
    margin-right: 15px;
}

.rtl .app-banner-text {
    margin-right: 0;
    margin-left: 15px;
    text-align: right;
}

.app-banner-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.app-banner-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.app-banner-download {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.app-banner-download:hover {
    background: #c82333;
    transform: scale(1.05);
}

.app-banner-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rtl .app-banner-close {
    right: auto;
    left: 5px;
}

.app-banner-close:hover {
    opacity: 1;
}

.app-banner-icon {
    display: none; /* Hide icon for cleaner look */
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-download-card {
        padding: 40px 30px;
    }
    
    .app-title {
        font-size: 26px;
    }
    
    .app-subtitle {
        font-size: 16px;
    }
    
    .app-download-simple .app-download-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .app-download-simple .app-store-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .app-download-simple {
        padding: 40px 0;
    }
    
    .app-download-card {
        padding: 35px 25px;
        border-radius: 15px;
    }
    
    .app-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .app-icon-wrapper i {
        font-size: 35px;
    }
    
    .app-title {
        font-size: 22px;
    }
    
    .app-subtitle {
        font-size: 15px;
    }
    
    .app-promo {
        font-size: 14px;
        padding: 12px 15px;
    }
}

/* App Redirect Box for Order Page */
.app-redirect-box {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 58, 110, 0.1);
    margin-top: 40px;
    margin-bottom: 40px;
}

.app-redirect-icon {
    display: inline-flex;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1a3a6e 0%, #2d5492 100%);
    border-radius: 25px;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(26, 58, 110, 0.2);
}

.app-redirect-icon i {
    font-size: 50px;
    color: white;
}

.app-redirect-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a3a6e;
    margin-bottom: 15px;
    font-family: 'Noto Serif JP', serif;
}

.app-redirect-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.app-redirect-box .app-download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 768px) {
    .app-redirect-box {
        padding: 40px 30px;
    }
    
    .app-redirect-title {
        font-size: 28px;
    }
    
    .app-redirect-subtitle {
        font-size: 16px;
    }
    
    .app-redirect-icon {
        width: 80px;
        height: 80px;
    }
    
    .app-redirect-icon i {
        font-size: 40px;
    }
}

/* Hide banner on desktop */
@media (min-width: 768px) {
    .smart-app-banner {
        display: none !important;
    }
}

/* Adjust navbar when banner is shown */
body.app-banner-shown .navbar {
    top: 65px;
}

body.app-banner-shown {
    padding-top: 65px;
}