/**
 * Whitelist Request Styling - JobCast
 * 
 * Professional, non-intrusive styling for ad blocker whitelist request
 * Responsive, accessible, and matches JobCast theme
 * 
 * @version 1.0.0
 */

/* Banner Styles */
.adblocker-notice.banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.adblocker-notice.banner.show {
    transform: translateY(0);
}

.adblocker-notice-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.adblocker-notice-icon {
    font-size: 24px;
    flex-shrink: 0;
    color: #fbbf24;
}

.adblocker-notice-message {
    flex: 1;
    line-height: 1.6;
    font-size: 14px;
}

.adblocker-notice-message strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 600;
}

.adblocker-notice-message a {
    color: #fbbf24;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.adblocker-notice-message a:hover {
    color: #f59e0b;
}

.adblocker-notice-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.adblocker-notice .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.adblocker-notice .btn:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

.adblocker-notice .btn-primary {
    background: #fbbf24;
    color: #1e3a8a;
}

.adblocker-notice .btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-1px);
}

.adblocker-notice .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.adblocker-notice .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.adblocker-notice .btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Modal Styles */
.adblocker-notice.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.adblocker-notice.modal.show {
    opacity: 1;
    visibility: visible;
}

.adblocker-notice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.adblocker-notice .modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.adblocker-notice.modal.show .modal-content {
    transform: scale(1);
}

.adblocker-notice-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.adblocker-notice-close:hover {
    color: #1e293b;
}

.adblocker-notice-close:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 4px;
}

.adblocker-notice .modal-content .adblocker-notice-icon {
    text-align: center;
    font-size: 48px;
    color: #2563eb;
    margin-bottom: 20px;
}

.adblocker-notice .modal-content h3 {
    margin: 0 0 15px 0;
    color: #1e293b;
    font-size: 24px;
    text-align: center;
    font-weight: 600;
}

.adblocker-notice .modal-content p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 15px;
}

.adblocker-notice .modal-content p strong {
    color: #1e293b;
    font-weight: 600;
}

.adblocker-notice .modal-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.adblocker-notice .modal-content ul li {
    padding: 10px 0;
    color: #475569;
    line-height: 1.6;
    font-size: 15px;
}

.adblocker-notice .modal-content .adblocker-notice-actions {
    margin-top: 30px;
    flex-direction: column;
    gap: 10px;
}

.adblocker-notice .modal-content .btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .adblocker-notice.banner {
        padding: 12px 15px;
    }
    
    .adblocker-notice-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .adblocker-notice-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .adblocker-notice .btn {
        width: 100%;
    }
    
    .adblocker-notice .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .adblocker-notice .modal-content h3 {
        font-size: 20px;
    }
    
    .adblocker-notice .modal-content .adblocker-notice-icon {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .adblocker-notice-message {
        font-size: 13px;
    }
    
    .adblocker-notice-message strong {
        font-size: 14px;
    }
    
    .adblocker-notice .modal-content {
        padding: 25px 15px;
    }
    
    .adblocker-notice .modal-content h3 {
        font-size: 18px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .adblocker-notice,
    .adblocker-notice-content,
    .adblocker-notice .modal-content,
    .adblocker-notice .btn {
        transition: none;
        animation: none;
    }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
    .adblocker-notice.banner {
        border-bottom: 3px solid #ffffff;
    }
    
    .adblocker-notice .modal-content {
        border: 2px solid #1e293b;
    }
    
    .adblocker-notice .btn {
        border: 2px solid currentColor;
    }
}

/* Print Styles - Hide on print */
@media print {
    .adblocker-notice {
        display: none !important;
    }
}

/* Ensure banner doesn't overlap with navigation */
@media (min-width: 769px) {
    body.has-adblocker-banner {
        padding-top: 80px; /* Adjust based on banner height */
    }
}

