/* ==========================================================================
   teduX Mobile App Integration Styles (Header, Footer, Sidebar, Modal, Banner)
   ========================================================================== */

/* Header App Button */
.tedux-app-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transition: all 0.25s ease;
    margin-right: 12px;
}
.tedux-app-header-btn:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45);
    color: #ffffff !important;
}
.tedux-free-pill {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Nav Item App Link */
.tedux-nav-app-link {
    color: #059669 !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}
.tedux-nav-app-link:hover {
    color: #047857 !important;
}

/* Sidebar App Box */
.tedux-sidebar-app-box {
    margin: 15px 12px 20px 12px;
    padding: 16px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 12px;
    border: 1px solid #334155;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.tedux-sidebar-app-box .app-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.tedux-sidebar-app-box .app-box-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.tedux-sidebar-app-box .app-box-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}
.tedux-sidebar-app-box .app-box-badge {
    display: inline-block;
    color: #10b981;
    font-size: 11px;
    font-weight: 600;
}
.tedux-sidebar-app-box .app-box-desc {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 12px;
}
.tedux-sidebar-app-box .app-btn-play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff !important;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    text-decoration: none !important;
    transition: all 0.2s;
}
.tedux-sidebar-app-box .app-btn-play:hover {
    background: #1e293b;
    border-color: #38bdf8;
    color: #38bdf8 !important;
}
.tedux-sidebar-app-box .app-btn-apk {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff !important;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s;
}
.tedux-sidebar-app-box .app-btn-apk:hover {
    background: linear-gradient(135deg, #047857, #059669);
    color: #ffffff !important;
}

/* Footer App Section */
.footer-app-section {
    padding: 10px 0;
}
.footer-app-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-app-desc {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}
.footer-app-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 240px;
}
.footer-store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}
.footer-store-btn.google-play {
    background: #111827;
    border: 1px solid #374151;
    color: #ffffff !important;
}
.footer-store-btn.google-play:hover {
    background: #1f2937;
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.store-btn-icon {
    font-size: 24px;
    line-height: 1;
}
.store-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.store-btn-subtitle {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}
.store-btn-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

/* Home Showcase Banner */
.tedux-app-showcase-section {
    margin: 40px 0 25px 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #091e2b 0%, #0c2b3d 50%, #064e3b 100%);
    color: #ffffff;
    padding: 35px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.tedux-app-showcase-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    pointer-events: none;
}
.app-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.app-showcase-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.25;
}
.app-showcase-desc {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 580px;
}
.app-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.app-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #f1f5f9;
}
.app-feature-item i {
    color: #34d399;
}
.app-showcase-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.app-showcase-preview-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.app-preview-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    margin-bottom: 12px;
}
.app-preview-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}
.app-preview-rating {
    color: #fbbf24;
    font-size: 13px;
    margin-bottom: 12px;
}

/* Mobile Smart App Banner */
.tedux-smart-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    border-top: 1px solid #1e293b;
    animation: slideUpBanner 0.4s ease-out;
}
@keyframes slideUpBanner {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.smart-banner-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.smart-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    flex-shrink: 0;
}
.smart-banner-info {
    flex: 1;
    min-width: 0;
}
.smart-banner-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.smart-banner-meta {
    font-size: 11px;
    color: #94a3b8;
}
.smart-banner-btn {
    background: #10b981;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    white-space: nowrap;
}

/* Download App Modal */
.tedux-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.tedux-modal-backdrop.is-active {
    display: flex;
}
.tedux-modal-container {
    background: #ffffff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: zoomInModal 0.25s ease-out;
    position: relative;
}
@keyframes zoomInModal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.tedux-modal-header {
    background: linear-gradient(135deg, #091e2b 0%, #064e3b 100%);
    color: #ffffff;
    padding: 24px;
    position: relative;
    text-align: center;
}
.tedux-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}
.tedux-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}
.tedux-modal-body {
    padding: 24px;
}
.modal-option-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    margin-bottom: 14px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    color: #1e293b !important;
}
.modal-option-card:hover {
    border-color: #10b981;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}
.modal-option-card.playstore {
    border-color: #cbd5e1;
}
.modal-option-card.playstore:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}
.option-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.playstore .option-icon-wrap {
    background: #eff6ff;
    color: #2563eb;
}
.option-text-wrap {
    flex: 1;
}
.option-title {
    font-size: 15px;
    font-weight: 700;
    display: block;
    line-height: 1.3;
}
.option-desc {
    font-size: 12px;
    color: #64748b;
    display: block;
}
.option-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}
.badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}
.badge-green {
    background: #d1fae5;
    color: #047857;
}

@media (max-width: 640px) {
    .app-showcase-title {
        font-size: 22px;
    }
    .tedux-app-showcase-section {
        padding: 24px 16px;
    }
    .tedux-app-header-btn {
        padding: 4px 10px;
        font-size: 12px;
        margin-right: 6px;
    }
    .tedux-free-pill {
        display: none;
    }
}
