/**
 * PCMax Membership System - Styles
 */

/* ==========================================================================
   CONTAINER PRINCIPALE
   ========================================================================== */

.pcmax-membership-popup {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================================================================
   BOX LOGIN
   ========================================================================== */

.pcmax-login-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pcmax-login-box h3 {
    margin: 0 0 10px 0;
    color: #1976d2;
    font-size: 24px;
}

.pcmax-login-box p {
    margin: 0 0 20px 0;
    color: #555;
}

.pcmax-login-box .login {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.pcmax-login-box .login label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.pcmax-login-box .login input[type="text"],
.pcmax-login-box .login input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.pcmax-login-box .login input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pcmax-login-box .login input[type="submit"]:hover {
    background: #1565c0;
}

.pcmax-login-box .login-remember {
    margin-bottom: 15px;
}

.pcmax-login-box .login-remember label {
    font-weight: normal;
    display: inline;
}

.pcmax-login-footer {
    text-align: center;
    margin-top: 15px;
}

.pcmax-login-footer a {
    color: #1976d2;
    text-decoration: none;
    font-size: 14px;
}

.pcmax-login-footer a:hover {
    text-decoration: underline;
}

/* Stato già abbonato */
.already-subscribed {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #4caf50;
}

.already-subscribed .success-message {
    color: #2e7d32;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.already-subscribed .membership-info {
    color: #333;
    margin: 10px 0;
}

.already-subscribed .access-info {
    color: #555;
    margin: 10px 0 20px 0;
}

.pcmax-btn-access {
    display: inline-block;
    padding: 12px 30px;
    background: #4caf50;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.pcmax-btn-access:hover {
    background: #45a049;
}

/* ==========================================================================
   SEZIONE PREZZI
   ========================================================================== */

.pcmax-pricing-section {
    margin-top: 40px;
}

.pcmax-pricing-section h2 {
    text-align: center;
    font-size: 32px;
    margin: 0 0 10px 0;
    color: #333;
}

.pricing-subtitle {
    text-align: center;
    color: #666;
    margin: 0 0 40px 0;
    font-size: 18px;
}

.pricing-tables {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .pricing-tables {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 30px;
    }
}

/* ==========================================================================
   BOX PREZZO
   ========================================================================== */

.price-box {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.price-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.price-box.featured {
    border-color: #1976d2;
    border-width: 3px;
    transform: scale(1.05);
}

.price-box.featured:hover {
    transform: scale(1.08);
}

/* Badge */
.price-box .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff9800;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.price-box .badge.best-value {
    background: #4caf50;
}

.price-box h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
}

/* Prezzo */
.price-box .price {
    margin-bottom: 10px;
}

.price-box .price .amount {
    font-size: 42px;
    font-weight: 700;
    color: #1976d2;
}

.price-box .price .period {
    font-size: 16px;
    color: #666;
}

.price-box .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-bottom: 5px;
}

.price-box .savings {
    background: #4caf50;
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Features */
.price-box .features {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
    text-align: left;
}

.price-box .features li {
    padding: 10px 0;
    color: #555;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.price-box .features li:last-child {
    border-bottom: none;
}

/* Bottone */
.btn-subscribe {
    display: inline-block;
    width: 100%;
    padding: 15px;
    background: #1976d2;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-subscribe:hover {
    background: #1565c0;
}

.price-box.featured .btn-subscribe {
    background: #ff9800;
}

.price-box.featured .btn-subscribe:hover {
    background: #f57c00;
}

/* Nota prezzi */
.pricing-note {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 20px;
}

/* ==========================================================================
   MEMBERSHIP STATUS
   ========================================================================== */

.pcmax-membership-status {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.membership-active {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.membership-inactive {
    background: #fff3e0;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.membership-active h3 {
    color: #2e7d32;
    margin-top: 0;
}

.membership-inactive h3 {
    color: #e65100;
    margin-top: 0;
}

/* ==========================================================================
   CONTENUTO PROTETTO
   ========================================================================== */

.pcmax-protected-content-notice {
    background: #fff3e0;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    margin: 40px 0;
    border: 2px solid #ff9800;
}

.pcmax-protected-content-notice h2 {
    color: #e65100;
    margin-top: 0;
}

.pcmax-protected-actions {
    margin-top: 30px;
}

.pcmax-protected-actions .button {
    margin: 0 10px;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
}

.pcmax-btn-login {
    background: #1976d2;
    color: white !important;
}

.pcmax-btn-login:hover {
    background: #1565c0;
}

.pcmax-btn-subscribe {
    background: #ff9800;
    color: white !important;
}

.pcmax-btn-subscribe:hover {
    background: #f57c00;
}

/* ==========================================================================
   PAGINA PROTETTA
   ========================================================================== */

.pcmax-protected-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.pcmax-notice-box {
    text-align: center;
    padding: 40px;
    margin-bottom: 30px;
}

.notice-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.pcmax-notice-box h1 {
    color: #333;
    margin: 0 0 15px 0;
}

.notice-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.user-info {
    font-size: 16px;
    color: #555;
}

.pcmax-access-actions {
    text-align: center;
    margin: 30px 0;
}

.pcmax-btn-primary,
.pcmax-btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pcmax-btn-primary {
    background: #1976d2;
    color: white !important;
}

.pcmax-btn-primary:hover {
    background: #1565c0;
}

.pcmax-btn-secondary {
    background: #ff9800;
    color: white !important;
}

.pcmax-btn-secondary:hover {
    background: #f57c00;
}

/* Badge membership attivo */
.pcmax-membership-badge {
    background: #4caf50;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.badge-icon {
    font-size: 24px;
    margin-right: 10px;
}

.badge-text {
    flex: 1;
    font-size: 16px;
}

.badge-link {
    color: white !important;
    text-decoration: underline;
    font-size: 14px;
}

.badge-link:hover {
    text-decoration: none;
}

/* ==========================================================================
   THANKYOU PAGE
   ========================================================================== */

.pcmax-thankyou-notice {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   UTILITÀ
   ========================================================================== */

.pcmax-protected-inline {
    background: #fff3e0;
    padding: 20px;
    border-left: 4px solid #ff9800;
    border-radius: 5px;
    margin: 20px 0;
}

.pcmax-protected-inline p {
    margin: 0 0 15px 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .pcmax-login-box,
    .pcmax-pricing-section {
        padding: 20px;
    }
    
    .pcmax-pricing-section h2 {
        font-size: 24px;
    }
    
    .pricing-subtitle {
        font-size: 16px;
    }
    
    .price-box {
        padding: 20px;
    }
    
    .price-box .price .amount {
        font-size: 32px;
    }
    
    .pcmax-access-actions .button {
        display: block;
        margin: 10px 0;
    }
    
    .pcmax-btn-primary,
    .pcmax-btn-secondary {
        display: block;
        margin: 10px 0;
    }
    
    .pcmax-membership-badge {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
