/**
 * PCA Top Bar Notification Frontend Styles
 * MODAL STYLES ONLY - Top bar CSS is generated inline via pca_generate_notice_css()
 */

/* Top bar base styles removed - now generated dynamically in wp_head via pca_generate_notice_css() */
/* This file now contains ONLY modal styles to avoid conflicts */

/* ========================================
   DETAILS MODAL (v1.2.0)
   ======================================== */

/* Modal container */
.pca-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    animation: pcaModalFadeIn 0.2s ease;
}

@keyframes pcaModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Dark overlay */
.pca-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

/* Modal content box */
.pca-modal-content {
    position: relative;
    max-width: 600px;
    margin: 80px auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    animation: pcaModalSlideIn 0.3s ease;
}

@keyframes pcaModalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close button */
.pca-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: #6b7280;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.pca-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.pca-modal-close:focus {
    outline: 2px solid #324fbe;
    outline-offset: 2px;
}

/* Modal title */
.pca-modal-content h2 {
    margin: 0 40px 24px 0;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

/* Promo code box - highlighted yellow */
.pca-promo-code-box {
    background: #f2fcf9 !important;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.pca-promo-label {
    font-size: 12px;
    color: #92400E;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.pca-promo-code {
    font-size: 24px;
    font-weight: 700;
    color: #0d953a;
    letter-spacing: 1px;
    font-family: 'Courier New', Courier, monospace;
}

/* Modal body content */
.pca-modal-body {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 15px;
}

.pca-modal-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-top: 20px;
    margin-bottom: 12px;
}

.pca-modal-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-top: 16px;
    margin-bottom: 10px;
}

.pca-modal-body p {
    margin-bottom: 12px;
}

.pca-modal-body ul,
.pca-modal-body ol {
    margin: 12px 0;
    padding-left: 24px;
}

.pca-modal-body li {
    margin-bottom: 6px;
}

.pca-modal-body strong {
    font-weight: 600;
    color: #111827;
}

/* Modal footer with CTA */
.pca-modal-footer {
    text-align: center;
    padding-top: 8px;
}

.pca-modal-cta {
    display: inline-block;
    padding: 14px 32px;
    background: #FF6B00;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pca-modal-cta:hover {
    background: #E55F00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.pca-modal-cta:focus {
    outline: 2px solid #FF6B00;
    outline-offset: 2px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .pca-modal-content {
        margin: 20px;
        padding: 24px;
        max-height: calc(100vh - 40px);
    }

    .pca-modal-content h2 {
        font-size: 24px;
        margin-right: 30px;
    }

    .pca-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 28px;
    }

    .pca-promo-code {
        font-size: 20px;
    }

    .pca-modal-body {
        font-size: 14px;
    }

    .pca-modal-cta {
        width: 100%;
        padding: 12px 24px;
    }
}

/* Modal scrollbar styling */
.pca-modal-content {
    scroll-behavior: smooth;
}

.pca-modal-content::-webkit-scrollbar {
    width: 8px;
}

.pca-modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.pca-modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.pca-modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}