/**
 * Frontend styles for Protect My Article plugin
 *
 * @package ProtectMyArticle
 * @since 2.0.0
 */

/* Protection Page Styles */
.pma-protection-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.pma-protection-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.pma-protection-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    animation: pma-fadeInUp 0.6s ease-out;
}

.pma-protection-icon {
    font-size: 64px;
    color: #6c757d;
    margin-bottom: 24px;
    opacity: 0.8;
    animation: pma-pulse 2s ease-in-out infinite;
}

.pma-protection-icon .dashicons {
    width: 64px;
    height: 64px;
    font-size: 64px;
}

.pma-protection-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.pma-protection-message {
    margin-bottom: 30px;
}

.pma-main-message {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.pma-login-prompt,
.pma-access-denied {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.pma-login-prompt {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
}

.pma-access-denied {
    background: #ffebee;
    border: 1px solid #ffcdd2;
}

.pma-login-prompt p,
.pma-access-denied p {
    margin: 0 0 15px 0;
    color: #37474f;
    font-size: 14px;
}

.pma-login-button {
    display: inline-block;
    padding: 12px 24px;
    background: #2196f3;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.pma-login-button:hover {
    background: #1976d2;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.pma-navigation {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.pma-home-link,
.pma-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    color: #6c757d;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pma-home-link:hover,
.pma-back-link:hover {
    color: #495057;
    border-color: #adb5bd;
    text-decoration: none;
    background: #f8f9fa;
}

.pma-home-link .dashicons,
.pma-back-link .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* Protection Message in Content */
.pma-protection-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.pma-protection-message p {
    margin: 0 0 10px 0;
    color: #856404;
    font-weight: 500;
}

.pma-protection-message a {
    color: #856404;
    text-decoration: underline;
}

.pma-protection-message a:hover {
    color: #533f03;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pma-protection-page {
        padding: 20px 15px;
        min-height: 50vh;
    }
    
    .pma-protection-content {
        padding: 30px 20px;
    }
    
    .pma-protection-title {
        font-size: 24px;
    }
    
    .pma-protection-icon {
        font-size: 48px;
        margin-bottom: 20px;
    }
    
    .pma-protection-icon .dashicons {
        width: 48px;
        height: 48px;
        font-size: 48px;
    }
    
    .pma-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .pma-home-link,
    .pma-back-link {
        width: 100%;
        justify-content: center;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .pma-protection-content {
        padding: 25px 15px;
    }
    
    .pma-protection-title {
        font-size: 20px;
    }
    
    .pma-main-message {
        font-size: 14px;
    }
    
    .pma-login-prompt,
    .pma-access-denied {
        padding: 15px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .pma-protection-page {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .pma-protection-content {
        background: #34495e;
        border-color: #4a5f7a;
        color: #ecf0f1;
    }
    
    .pma-protection-title {
        color: #ecf0f1;
    }
    
    .pma-main-message {
        color: #bdc3c7;
    }
    
    .pma-login-prompt {
        background: #2c3e50;
        border-color: #34495e;
    }
    
    .pma-access-denied {
        background: #e74c3c;
        border-color: #c0392b;
    }
    
    .pma-home-link,
    .pma-back-link {
        color: #bdc3c7;
        border-color: #4a5f7a;
    }
    
    .pma-home-link:hover,
    .pma-back-link:hover {
        color: #ecf0f1;
        background: #4a5f7a;
        border-color: #5a6f8a;
    }
}

/* Animation effects */
@keyframes pma-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Print styles */
@media print {
    .pma-protection-page {
        background: none;
        color: #000;
    }
    
    .pma-protection-content {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .pma-login-button,
    .pma-navigation {
        display: none;
    }
}