/* ============================================
   CLÍNICA TECH - Admin Additions CSS
   File: assets/css/admin-additions.css
   Purpose: Styles for admin-managed content (banners & FAQs)
   FIXED: Removed conflicting status-indicator styles
   ============================================ */

/* ============================================
   BANNERS SECTION - All 5 Display Styles
   Apple-Inspired Modern Design
   ============================================ */
.site-banners {
    position: fixed;
    top: 80px;  /* Below default header height */
    left: 0;
    right: 0;
    z-index: 999;  /* Just below header (1000) */
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;  /* Allow clicks to pass through empty space */
}

.site-banners > * {
    pointer-events: auto;  /* Re-enable clicks on actual banners */
}

/* Move with compact header - triggered by JavaScript */
.site-banners.header-compact {
    top: 60px;  /* Compact header height */
}

/* ============================================
   STYLE 1: MINIMAL TOP BAR
   ============================================ */
.banner-minimal-top {
    width: 100%;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    animation: slideDownMinimal 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.banner-minimal-top .banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
}

.banner-minimal-top .banner-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.banner-minimal-top .banner-text {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.banner-minimal-top .banner-text strong {
    font-weight: 600;
}

.banner-minimal-top .banner-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 8px;
    opacity: 0.5;
    transition: opacity 0.2s;
    line-height: 1;
}

.banner-minimal-top .banner-close:hover {
    opacity: 1;
}

.banner-minimal-top .banner-button {
    margin-left: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

/* ============================================
   STYLE 2: STICKY SIDE TAB
   ============================================ */
.banner-sticky-side {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    animation: slideInSide 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-sticky-side.position-right {
    right: 0;
}

.banner-sticky-side.position-left {
    left: 0;
}

.banner-sticky-side .banner-content {
    padding: 14px 18px;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 4px 16px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.banner-sticky-side.position-left .banner-content {
    border-radius: 0 12px 12px 0;
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.15);
}

.banner-sticky-side:hover .banner-content {
    padding-right: 24px;
}

.banner-sticky-side .banner-icon {
    font-size: 20px;
    margin-bottom: 8px;
    display: block;
    text-align: center;
}

.banner-sticky-side .banner-text {
    writing-mode: vertical-rl;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
}

.banner-sticky-side .banner-close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    line-height: 1;
}

.banner-sticky-side:hover .banner-close {
    opacity: 0.7;
}

.banner-sticky-side .banner-close:hover {
    opacity: 1;
}

/* ============================================
   STYLE 3: BOTTOM TOAST/SNACKBAR
   ============================================ */
.banner-bottom-toast {
    position: fixed;
    bottom: 24px;
    z-index: 1001;
    animation: slideInToast 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-bottom-toast.position-right {
    right: 24px;
}

.banner-bottom-toast.position-left {
    left: 24px;
}

.banner-bottom-toast.position-center {
    left: 50%;
    transform: translateX(-50%);
}

.banner-bottom-toast .banner-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                0 0 0 0.5px rgba(255, 255, 255, 0.8) inset;
    display: flex;
    align-items: start;
    gap: 14px;
    max-width: 380px;
    min-width: 320px;
}

.banner-bottom-toast .banner-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.banner-bottom-toast .banner-text {
    flex: 1;
}

.banner-bottom-toast .banner-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2937;
}

.banner-bottom-toast .banner-text span {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.banner-bottom-toast .banner-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.banner-bottom-toast .banner-close:hover {
    color: #4b5563;
}

.banner-bottom-toast .banner-button {
    margin-top: 8px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

/* ============================================
   STYLE 4: INLINE SUBTLE
   ============================================ */
.banner-inline-subtle {
    padding: 10px 20px;
    animation: slideDownMinimal 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    width: 100%;
}

.banner-inline-subtle .banner-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.banner-inline-subtle .banner-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.banner-inline-subtle .banner-text {
    flex: 1;
    color: #4b5563;
}

.banner-inline-subtle .banner-text strong {
    font-weight: 600;
    color: #1f2937;
    margin-right: 6px;
}

.banner-inline-subtle .banner-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 6px;
    transition: color 0.2s;
    line-height: 1;
}

.banner-inline-subtle .banner-close:hover {
    color: #4b5563;
}

.banner-inline-subtle .banner-button {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

/* ============================================
   STYLE 5: HEADER BADGE
   ============================================ */
.banner-header-badge {
    position: fixed;
    top: 90px;
    z-index: 999;
    animation: slideDownMinimal 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-header-badge.position-right {
    right: 20px;
}

.banner-header-badge.position-left {
    left: 20px;
}

.banner-header-badge .badge-pill {
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.banner-header-badge .badge-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.banner-header-badge .badge-icon {
    font-size: 16px;
}

.banner-header-badge .badge-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 18px;
    min-width: 300px;
    max-width: 360px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-header-badge .badge-pill:hover + .badge-dropdown,
.banner-header-badge .badge-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.banner-header-badge .badge-dropdown .title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.banner-header-badge .badge-dropdown .message {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 12px;
}

.banner-header-badge .banner-button {
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.banner-header-badge .badge-close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all 0.2s;
    line-height: 1;
}

.banner-header-badge .badge-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

/* ============================================
   COLOR TYPES - Modern Apple-Inspired Palette
   ============================================ */

/* INFO - Blue */
.banner-info.banner-minimal-top {
    background: rgba(59, 130, 246, 0.08);
    border-bottom-color: rgba(59, 130, 246, 0.2);
    color: #1e40af;
}

.banner-info .banner-icon {
    color: #3b82f6;
}

.banner-info.banner-inline-subtle .banner-content {
    border-left: 3px solid #3b82f6;
}

.banner-info.banner-sticky-side .banner-content,
.banner-info.banner-header-badge .badge-pill {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    color: white;
}

.banner-info .banner-button {
    background: #3b82f6;
    color: white;
}

.banner-info .banner-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* SUCCESS - Green */
.banner-success.banner-minimal-top {
    background: rgba(16, 185, 129, 0.08);
    border-bottom-color: rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.banner-success .banner-icon {
    color: #10b981;
}

.banner-success.banner-inline-subtle .banner-content {
    border-left: 3px solid #10b981;
}

.banner-success.banner-sticky-side .banner-content,
.banner-success.banner-header-badge .badge-pill {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    color: white;
}

.banner-success .banner-button {
    background: #10b981;
    color: white;
}

.banner-success .banner-button:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* WARNING - Amber */
.banner-warning.banner-minimal-top {
    background: rgba(245, 158, 11, 0.08);
    border-bottom-color: rgba(245, 158, 11, 0.2);
    color: #92400e;
}

.banner-warning .banner-icon {
    color: #f59e0b;
}

.banner-warning.banner-inline-subtle .banner-content {
    border-left: 3px solid #f59e0b;
}

.banner-warning.banner-sticky-side .banner-content,
.banner-warning.banner-header-badge .badge-pill {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95) 0%, rgba(217, 119, 6, 0.95) 100%);
    color: white;
}

.banner-warning .banner-button {
    background: #f59e0b;
    color: white;
}

.banner-warning .banner-button:hover {
    background: #d97706;
    transform: translateY(-1px);
}

/* DANGER - Red */
.banner-danger.banner-minimal-top {
    background: rgba(239, 68, 68, 0.08);
    border-bottom-color: rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

.banner-danger .banner-icon {
    color: #ef4444;
}

.banner-danger.banner-inline-subtle .banner-content {
    border-left: 3px solid #ef4444;
}

.banner-danger.banner-sticky-side .banner-content,
.banner-danger.banner-header-badge .badge-pill {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    color: white;
}

.banner-danger .banner-button {
    background: #ef4444;
    color: white;
}

.banner-danger .banner-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* PROMO - Purple */
.banner-promo.banner-minimal-top {
    background: rgba(139, 92, 246, 0.08);
    border-bottom-color: rgba(139, 92, 246, 0.2);
    color: #5b21b6;
}

.banner-promo .banner-icon {
    color: #8b5cf6;
}

.banner-promo.banner-inline-subtle .banner-content {
    border-left: 3px solid #8b5cf6;
}

.banner-promo.banner-sticky-side .banner-content,
.banner-promo.banner-header-badge .badge-pill {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95) 0%, rgba(124, 58, 237, 0.95) 100%);
    color: white;
}

.banner-promo .banner-button {
    background: #8b5cf6;
    color: white;
}

.banner-promo .banner-button:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideDownMinimal {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInSide {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes slideInToast {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FAQs SECTION
   ============================================ */
.faqs-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #dbeafe 100%);
    position: relative;
    overflow: hidden;
}

/* Circuit background pattern for consistency */
.faqs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/circuit-bg.jpg');
    background-size: 400px 400px;
    background-position: center;
    background-repeat: repeat;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content appears above background */
.faqs-section > * {
    position: relative;
    z-index: 1;
}

.faqs-section .section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.faqs-section .section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 50px;
}

.faqs-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category-title {
    font-size: 26px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 20px;
    padding-left: 8px;
    border-left: 4px solid #3b82f6;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-item.active {
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    gap: 20px;
}

.faq-question:hover {
    color: #3b82f6;
}

.faq-item.active .faq-question {
    color: #3b82f6;
}

.faq-icon {
    font-size: 28px;
    font-weight: 300;
    color: #3b82f6;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: max-height;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
}

/* ============================================
   STORE STATUS ENHANCEMENTS (LOCATION PAGE)
   Note: Status indicator in header is controlled by header.css
   These styles are ONLY for location page displays
   ============================================ */

/* Special announcement styling for location page */
.special-announcement {
    margin: 0 0 24px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    color: #92400e;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Mobile: Hide special announcement or make it a compact banner */
@media (max-width: 768px) {
    .special-announcement {
        display: none; /* Hide on mobile since it's showing in location */
    }
}

/* Hours display for location page */
.hours-list {
    margin-top: 16px;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.hour-item:last-child {
    border-bottom: none;
}

/* ============================================
   REVIEW ENHANCEMENTS
   ============================================ */
.review-card.featured {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    position: relative;
}

.featured-badge {
    background: #fbbf24;
    color: #78350f;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {

    /* Banners */
    .banner-text {
        font-size: 13px;
    }

    .banner-text strong {
        font-size: 14px;
    }

    .banner-icon {
        font-size: 20px;
    }

    /* FAQs */
    .faqs-section {
        padding: 60px 0;
    }

    .faqs-section .section-title {
        font-size: 32px;
    }

    .faq-category-title {
        font-size: 22px;
    }

    .faq-item {
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 15px;
        transition: color 0.2s ease;
    }

    .faq-answer {
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .faq-item.active .faq-answer {
        max-height: 400px;
    }

    .faq-answer p {
        padding: 0 18px 16px;
        font-size: 14px;
    }

    .faq-icon {
        transition: transform 0.2s ease;
    }
}

@media (max-width: 480px) {
    .banner-content {
        padding: 10px 16px;
    }

    .faqs-section .section-title {
        font-size: 28px;
    }
}