/**
 * Frontend styles for UT Page Restriction plugin
 *
 * @package UT_Page_Restriction
 * @version 1.0.0
 */

/* Access Denied Notice */
.ut-page-restriction-notice {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-left: 4px solid #d63638;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ut-page-restriction-notice.ut-shortcode {
    margin: 15px 0;
}

/* Restriction Message */
.ut-restriction-message {
    font-size: 16px;
    line-height: 1.5;
    color: #3c434a;
    margin-bottom: 15px;
}

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

/* Login Prompt */
.ut-login-prompt {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
}

.ut-login-prompt p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #646970;
}

.ut-login-link {
    display: inline-block;
    background: #2271b1;
    color: #fff !important;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.ut-login-link:hover,
.ut-login-link:focus {
    background: #135e96;
    color: #fff !important;
    text-decoration: none;
}

/* WordPress Button Integration */
.ut-login-link.button {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.ut-login-link.button:hover,
.ut-login-link.button:focus {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
    .ut-page-restriction-notice {
        padding: 15px;
        margin: 15px 0;
    }
    
    .ut-restriction-message {
        font-size: 15px;
    }
    
    .ut-login-link {
        padding: 10px 20px;
        font-size: 16px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .ut-page-restriction-notice {
        background: #1e1e1e;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .ut-restriction-message {
        color: #e0e0e0;
    }
    
    .ut-login-prompt {
        border-top-color: #444;
    }
    
    .ut-login-prompt p {
        color: #ccc;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .ut-page-restriction-notice {
        border-width: 2px;
        border-left-width: 6px;
    }
    
    .ut-login-link {
        border: 2px solid #000;
        font-weight: bold;
    }
}

/* Print Styles */
@media print {
    .ut-page-restriction-notice {
        border: 2px solid #000;
        background: #fff;
        box-shadow: none;
    }
    
    .ut-login-link {
        display: none;
    }
}

/* Accessibility Improvements */
.ut-page-restriction-notice:focus-within {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Animation for Dynamic Content */
.ut-page-restriction-notice {
    animation: fadeInUp 0.4s ease-out;
}

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

/* Custom Styling Hooks for Themes */
.ut-page-restriction-notice.theme-styled {
    /* Allow themes to override styles */
    background: inherit;
    border: inherit;
    padding: inherit;
    margin: inherit;
}

/* Bricks Builder Integration */
.brx-body .ut-page-restriction-notice {
    max-width: 100%;
    margin: 20px auto;
}

/* Common Theme Compatibility */
.entry-content .ut-page-restriction-notice,
.post-content .ut-page-restriction-notice,
.page-content .ut-page-restriction-notice {
    margin: 20px 0;
    clear: both;
}

/* Error State Styling */
.ut-page-restriction-notice.error {
    border-left-color: #d63638;
}

.ut-page-restriction-notice.warning {
    border-left-color: #dba617;
}

.ut-page-restriction-notice.info {
    border-left-color: #72aee6;
} 