/**
 * App Banner Pre Header Styles
 * @package AlphaCore
 * @version 1.0.0
 */

.app-banner-pre-header {
    background: linear-gradient(135deg, #E8F4FD 0%, #F0F8FF 100%);
    border-bottom: 1px solid #D1E7F5;
    padding: 20px 0;
    position: relative;
    z-index: 1000;
    display: none; /* Hidden by default, shown via JS */
}

.app-banner-pre-header.show {
    display: block;
}

.app-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-banner-content .cl-buttons {
    padding: 0;
}

.app-banner-content .cl-button {
    width: 200px;
}

/* Text Content */
.app-banner-text {
    min-width: 0;
}

.app-banner-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: #1A365D;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.app-banner-text p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #4A5568;
    margin: 0;
    line-height: 1.4;
}

/* App Store Links */
.app-banner-stores {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.app-banner-stores img {
    max-height: 20px;
}

.app-store-link,
.google-play-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.app-store-link:hover,
.google-play-link:hover {
    opacity: 0.8;
}

.app-store-link img,
.google-play-link img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.app-store-link span,
.google-play-link span {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2D3748;
}

/* CTA Button */
.app-banner-cta {
    flex-shrink: 0;
}

.btn-explore-app {
    display: inline-block;
    background: #805AD5;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-explore-app:hover {
    background: #6B46C1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(128, 90, 213, 0.3);
}

/* Close Button */
.app-banner-close {
    position: absolute;
    top: 20%;
    right: 0;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.app-banner-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.app-banner-close span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #718096;
}

.app-banner-close .close-x {
    font-size: 16px;
    font-weight: bold;
    color: #4A5568;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .app-banner-content {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .app-banner-text {
        flex-basis: 100%;
        order: 1;
    }
    
    .app-banner-stores {
        order: 2;
    }
    
    .cl-buttons {
        order: 3;
    }
    
    .app-banner-close {
        position: static;
        transform: none;
        order: 4;
        margin: 0 auto;
        text-align: center;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .app-banner-content {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 24px;
        position: relative;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        flex-direction: column;
    }

    .app-banner-pre-header {
        padding: 12px 0;
    }
    
    .app-banner-content {
        padding: 1rem 16px;
        gap: 2rem;
    }
    
    .app-banner-text h2 {
        font-size: 26px;
    }
    
    .app-banner-text p {
        font-size: 13px;
    }
    
    .app-banner-stores {
        gap: 16px;
        order: 2;
    }
    
    .cl-buttons {
        order: 3;
    }
    
    .app-store-link span,
    .google-play-link span {
        font-size: 13px;
    }
    
    .btn-explore-app {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .app-banner-stores {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .app-store-link,
    .google-play-link {
        gap: 6px;
    }
    
    .app-store-link img,
    .google-play-link img {
        width: 20px;
        height: 20px;
    }
    
    .app-store-link span,
    .google-play-link span {
        font-size: 12px;
    }
}

/* Animation for banner show/hide */
.app-banner-pre-header {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.app-banner-pre-header.show {
    transform: translateY(0);
}

/* Hide banner when closed */
.app-banner-pre-header.hidden {
    display: none;
}
