/* Books Master Welcome Modal Styles */

.bm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bm-modal-overlay.bm-modal-show {
    opacity: 1;
}

.bm-modal-container {
    position: relative;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #2D1B4E 0%, #1a0f2e 100%);
    border: 3px solid rgba(212, 175, 55, 0.5);
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.4);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.bm-modal-show .bm-modal-container {
    transform: scale(1);
}

.bm-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(244, 236, 216, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #F4ECD8;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.bm-modal-close:hover {
    background: rgba(244, 236, 216, 0.2);
    border-color: #D4AF37;
    color: #D4AF37;
}

.bm-modal-content {
    padding: 2.5rem 2rem;
}

.bm-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.bm-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bm-pulse 2s infinite;
}

@keyframes bm-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.bm-modal-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #F4ECD8;
    margin-bottom: 0.5rem;
}

.bm-gold-text {
    color: #D4AF37;
}

.bm-modal-subtitle {
    color: #C0C0C0;
    font-size: 1rem;
}

.bm-modal-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bm-info-box {
    padding: 1.25rem;
    border-radius: 12px;
    border: 2px solid;
}

.bm-box-green {
    background: rgba(80, 200, 120, 0.1);
    border-color: rgba(80, 200, 120, 0.4);
}

.bm-box-blue {
    background: rgba(74, 88, 153, 0.1);
    border-color: rgba(74, 88, 153, 0.4);
}

.bm-box-gold {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

.bm-box-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.bm-box-icon {
    font-size: 1.5rem;
}

.bm-info-box h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #D4AF37;
    margin: 0;
}

.bm-box-green h3 {
    color: #50C878;
}

.bm-box-blue h3 {
    color: #4A5899;
}

.bm-info-box p {
    color: #C0C0C0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.bm-info-box strong {
    color: #F4ECD8;
    font-weight: 600;
}

.bm-newsletter-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(74, 88, 153, 0.1) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.bm-newsletter-header {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bm-newsletter-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.bm-newsletter-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: #D4AF37;
    margin: 0 0 0.25rem 0;
}

.bm-newsletter-header p {
    color: #C0C0C0;
    font-size: 0.9rem;
    margin: 0;
}

.bm-newsletter-form {
    margin-top: 1rem;
}

.bm-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.bm-input-wrapper input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(244, 236, 216, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #F4ECD8;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.bm-input-wrapper input:focus {
    outline: none;
    border-color: #D4AF37;
    background: rgba(244, 236, 216, 0.15);
}

.bm-input-wrapper input::placeholder {
    color: #C0C0C0;
    opacity: 0.6;
}

.bm-btn-submit {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    color: #2D1B4E;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.bm-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.bm-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bm-newsletter-status {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.bm-newsletter-status:not(:empty) {
    display: block;
}

.bm-status-success {
    background: rgba(80, 200, 120, 0.1);
    border: 1px solid rgba(80, 200, 120, 0.3);
    color: #50C878;
}

.bm-status-error {
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.3);
    color: #DC143C;
}

.bm-signup-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(80, 200, 120, 0.1);
    border: 2px solid rgba(80, 200, 120, 0.3);
    border-radius: 8px;
    color: #50C878;
    font-weight: 500;
}

.bm-signup-success svg {
    flex-shrink: 0;
}

.bm-modal-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.bm-modal-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 4px;
    background: rgba(244, 236, 216, 0.1);
    cursor: pointer;
    appearance: none;
    position: relative;
}

.bm-modal-checkbox input[type="checkbox"]:checked {
    background: #D4AF37;
    border-color: #D4AF37;
}

.bm-modal-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2D1B4E;
    font-size: 14px;
    font-weight: bold;
}

.bm-modal-checkbox label {
    color: #C0C0C0;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.bm-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.bm-btn {
    flex: 1;
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    display: block;
}

.bm-btn-secondary {
    background: rgba(244, 236, 216, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: #F4ECD8;
}

.bm-btn-secondary:hover {
    background: rgba(244, 236, 216, 0.15);
    border-color: #D4AF37;
}

.bm-btn-primary {
    background: linear-gradient(135deg, #FF6B9D 0%, #C147E9 100%);
    color: white;
    border: none;
}

.bm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .bm-modal-content {
        padding: 2rem 1.5rem;
    }

    .bm-modal-header h2 {
        font-size: 1.75rem;
    }

    .bm-input-wrapper {
        flex-direction: column;
    }

    .bm-btn-submit {
        width: 100%;
    }

    .bm-modal-actions {
        flex-direction: column;
    }

    .bm-modal-container {
        max-height: 95vh;
    }
}

/* Scrollbar styling for modal */
.bm-modal-container::-webkit-scrollbar {
    width: 8px;
}

.bm-modal-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.bm-modal-container::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 10px;
}

.bm-modal-container::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}
