/**
 * Authentication Gate Component Styles
 * 
 * Styles for the auth prompt displayed to non-authenticated users
 * on gated features (Projects, Messages, Settings)
 * 
 * @package Silva_Customer_Portal
 * @version 2.8.1
 */

/* ========================================
   AUTH GATE CONTAINER
   ======================================== */

.silva-auth-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.auth-gate-container {
    max-width: 600px;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 48px 40px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-gate-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ========================================
   ICON
   ======================================== */

.auth-gate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(44, 82, 130, 0.3);
}

.auth-gate-icon svg {
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* ========================================
   CONTENT
   ======================================== */

.auth-gate-content {
    margin-bottom: 40px;
}

.auth-gate-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.auth-gate-message {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

/* ========================================
   FEATURES LIST
   ======================================== */

.auth-gate-features {
    margin-top: 32px;
    padding: 24px;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.features-heading {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: #2d3748;
    line-height: 1.5;
}

.features-list li:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

.feature-icon {
    flex-shrink: 0;
    color: #48bb78;
    width: 20px;
    height: 20px;
}

/* ========================================
   ACTION BUTTONS
   ======================================== */

.auth-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.auth-button:hover svg {
    transform: translateX(2px);
}

/* Primary Button (Sign In) */
.auth-button-primary {
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
}

.auth-button-primary:hover {
    background: linear-gradient(135deg, #1a365d 0%, #0f1f3d 100%);
    box-shadow: 0 6px 16px rgba(44, 82, 130, 0.4);
    transform: translateY(-2px);
}

.auth-button-primary:active {
    transform: translateY(0);
}

/* Secondary Button (Sign Up) */
.auth-button-secondary {
    background: #ffffff;
    color: #2c5282;
    border: 2px solid #2c5282;
}

.auth-button-secondary:hover {
    background: #2c5282;
    color: #ffffff;
    transform: translateY(-2px);
}

.auth-button-secondary:active {
    transform: translateY(0);
}

/* ========================================
   FOOTER
   ======================================== */

.auth-gate-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #718096;
    margin: 0;
}

.footer-icon {
    color: #4299e1;
    flex-shrink: 0;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    .silva-auth-gate {
        padding: 24px 16px;
        min-height: 50vh;
    }
    
    .auth-gate-container {
        padding: 32px 24px;
        border-radius: 12px;
    }
    
    .auth-gate-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 24px;
    }
    
    .auth-gate-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .auth-gate-title {
        font-size: 24px;
    }
    
    .auth-gate-message {
        font-size: 15px;
    }
    
    .auth-button {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .features-list li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .silva-auth-gate {
        padding: 16px 12px;
    }
    
    .auth-gate-container {
        padding: 24px 20px;
    }
    
    .auth-gate-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .auth-gate-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .auth-gate-title {
        font-size: 20px;
    }
    
    .auth-gate-message {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .auth-gate-features {
        padding: 16px;
    }
    
    .auth-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.auth-button:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

.auth-button:focus:not(:focus-visible) {
    outline: none;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .auth-gate-container,
    .auth-button,
    .auth-button svg {
        transition: none;
    }
    
    .auth-gate-container:hover {
        transform: none;
    }
    
    .auth-button:hover {
        transform: none;
    }
}

/* ========================================
   DARK MODE SUPPORT (Optional)
   ======================================== */

@media (prefers-color-scheme: dark) {
    .silva-auth-gate {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }
    
    .auth-gate-container {
        background: #2d3748;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .auth-gate-title {
        color: #f7fafc;
    }
    
    .auth-gate-message {
        color: #cbd5e0;
    }
    
    .auth-gate-features {
        background: #1a202c;
        border-color: #4a5568;
    }
    
    .features-heading {
        color: #e2e8f0;
    }
    
    .features-list li {
        color: #cbd5e0;
        border-bottom-color: #4a5568;
    }
    
    .auth-gate-footer {
        border-top-color: #4a5568;
    }
    
    .footer-text {
        color: #a0aec0;
    }
}
