/* Blog Access Subscription - Frontend Styles */

/* Restriction Modal Overlay */
.bas-restriction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bas-restriction-overlay[style*="flex"] {
    opacity: 1;
    visibility: visible;
}

/* Restriction Box */
.bas-restriction-box {
    background: #ffffff;
    color: #000000;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(30px);
    transition: transform 0.3s ease;
    position: relative;
    font-family: inherit;
}

.bas-restriction-overlay[style*="flex"] .bas-restriction-box {
    transform: translateY(0);
}

/* Close Button */
.bas-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #000000;
    transition: color 0.3s ease;
    padding: 5px;
    border-radius: 50%;
}

.bas-close-button:hover {
    color: #333333;
    background: rgba(0, 0, 0, 0.05);
}

/* Restriction Icon */
.bas-restriction-icon {
    color: #000000;
    margin-bottom: 20px;
}

.bas-restriction-icon svg {
    display: block;
    margin: 0 auto;
}

/* Restriction Title */
.bas-restriction-title {
    font-size: 28px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 20px 0;
    line-height: 1.3;
    font-family: inherit;
}

/* Restriction Message */
.bas-restriction-message {
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
    margin: 0 0 30px 0;
    font-family: inherit;
}

.bas-restriction-message p {
    margin: 0 0 15px 0;
}

.bas-restriction-message p:last-child {
    margin-bottom: 0;
}

/* Subscribe Button */
.bas-subscribe-button {
    display: inline-block;
    background: #000000;
    color: #ffffff !important;
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: none;
    font-family: inherit;
}

.bas-subscribe-button:hover {
    background: #333333;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: none;
    box-shadow: none;
}

.bas-subscribe-button:active {
    background: #000000;
    transform: none;
}

/* Inline Restriction Styles */
.bas-inline-restriction {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bas-restriction-content h3 {
    font-size: 24px;
    color: #000000;
    margin: 0 0 15px 0;
    font-weight: 600;
    font-family: inherit;
}

.bas-restriction-icon-inline {
    color: #000000;
    margin-bottom: 20px;
}

.bas-restriction-icon-inline svg {
    display: block;
    margin: 0 auto;
}

.bas-restriction-text {
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
    margin: 0 0 25px 0;
    font-family: inherit;
}

.bas-subscribe-button-inline {
    display: inline-block;
    background: #000000;
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: none;
    font-family: inherit;
}

.bas-subscribe-button-inline:hover {
    background: #333333;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bas-restriction-box {
        padding: 30px 20px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .bas-restriction-title {
        font-size: 24px;
    }
    
    .bas-restriction-message {
        font-size: 15px;
    }
    
    .bas-subscribe-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .bas-inline-restriction {
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    .bas-restriction-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .bas-restriction-box {
        padding: 25px 15px;
    }
    
    .bas-restriction-title {
        font-size: 22px;
    }
    
    .bas-subscribe-button {
        width: 100%;
        padding: 15px;
    }
    
    .bas-subscribe-button-inline {
        width: 100%;
        padding: 12px;
    }
}

/* Animation Classes */
@keyframes basSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bas-restriction-box.animate {
    animation: basSlideIn 0.3s ease-out;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bas-restriction-box {
        border: 2px solid #000;
    }
    
    .bas-subscribe-button {
        background: #000;
        border: 2px solid #000;
    }
    
    .bas-subscribe-button:hover {
        background: #333;
        border-color: #333;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .bas-restriction-overlay,
    .bas-restriction-box,
    .bas-subscribe-button,
    .bas-subscribe-button-inline,
    .bas-close-button {
        transition: none;
    }
    
    .bas-restriction-box.animate {
        animation: none;
    }
}

/* Consistent black and white theme - no dark mode overrides */

/* Print Styles */
@media print {
    .bas-restriction-overlay,
    .bas-inline-restriction {
        display: none !important;
    }
}