/* Access Control Styles for SecurityByStrategy Lessons */

/* Progress Display Styles */
.lesson-progress-container {
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.progress-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    display: block;
}

/* Paywall Overlay Styles */
.paywall-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.paywall-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: paywallSlideIn 0.5s ease-out;
}

@keyframes paywallSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.paywall-header h2 {
    color: #1e3a8a;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.paywall-header p {
    color: #6b7280;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.paywall-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.plan-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.plan-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.plan-option.featured {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-color: #3b82f6;
    position: relative;
}

.plan-option.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-option h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.plan-option.featured h3 {
    color: white;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.plan-option.featured .plan-price {
    color: white;
}

.plan-option p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.plan-option.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.btn-paywall {
    display: inline-block;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.btn-paywall:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    color: white;
    text-decoration: none;
}

.plan-option.featured .btn-paywall {
    background: white;
    color: #1e3a8a;
}

.plan-option.featured .btn-paywall:hover {
    background: #f8fafc;
    color: #1e3a8a;
}

.paywall-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.paywall-footer p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Renewal Overlay Styles */
.renewal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.renewal-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: paywallSlideIn 0.5s ease-out;
}

.renewal-content h2 {
    color: #dc2626;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.renewal-content p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.renewal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-renewal {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-renewal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
    color: white;
    text-decoration: none;
}

/* Upgrade Overlay Styles */
.upgrade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.upgrade-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: paywallSlideIn 0.5s ease-out;
}

.upgrade-content h2 {
    color: #059669;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.upgrade-content p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-upgrade {
    display: inline-block;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 250px;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.4);
    color: white;
    text-decoration: none;
}

/* Team Setup Overlay Styles */
.team-setup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.team-setup-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: paywallSlideIn 0.5s ease-out;
}

.team-setup-content h2 {
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.team-setup-content p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.team-setup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-team-setup {
    display: inline-block;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-team-setup:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    color: white;
    text-decoration: none;
}

.btn-team-skip {
    display: inline-block;
    background: transparent;
    color: #6b7280;
    border: 2px solid #6b7280;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-team-skip:hover {
    background: #6b7280;
    color: white;
    text-decoration: none;
}

/* Access Granted Message */
.access-granted-message {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
    z-index: 10000;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.success-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.success-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .paywall-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .paywall-plans {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .renewal-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-renewal,
    .btn-upgrade {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .access-granted-message {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .paywall-content,
    .renewal-content,
    .upgrade-content {
        background: #1f2937;
        color: white;
    }
    
    .plan-option {
        background: #374151;
        border-color: #4b5563;
    }
    
    .plan-option h3 {
        color: white;
    }
    
    .plan-option p {
        color: #d1d5db;
    }
    
    .paywall-footer {
        border-color: #4b5563;
    }
    
    .paywall-footer p {
        color: #d1d5db;
    }
}
