/**
 * Styles publics pour PolePress
 *
 * @since 1.0.0
 */

/* Reset de base */
.polepress-register-wrapper *,
.polepress-login-wrapper *,
.polepress-account-wrapper * {
    box-sizing: border-box;
}

/* Conteneurs principaux */
.polepress-register-wrapper,
.polepress-login-wrapper,
.polepress-account-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.polepress-register-box,
.polepress-login-box,
.polepress-account-box {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Titres */
.polepress-register-box h2,
.polepress-login-box h2,
.polepress-account-box h2 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
    color: #333;
}

.polepress-register-box h3,
.polepress-account-box h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Résumé du plan */
.polepress-plan-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.polepress-plan-summary h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    color: #fff;
    border: none;
    padding: 0;
}

.polepress-price {
    font-size: 36px;
    font-weight: bold;
    margin: 20px 0;
}

.polepress-price .duration {
    font-size: 16px;
    opacity: 0.9;
    font-weight: normal;
}

.polepress-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    text-align: left;
}

.polepress-features li {
    padding: 8px 0;
    font-size: 16px;
}

/* Formulaires */
.polepress-form-row {
    margin-bottom: 20px;
}

.polepress-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.polepress-form-row input[type="text"],
.polepress-form-row input[type="email"],
.polepress-form-row input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.polepress-form-row input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.polepress-form-row small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

/* Méthodes de paiement */
.polepress-payment-methods {
    margin: 25px 0;
}

.polepress-payment-methods h4 {
    margin-bottom: 15px;
    color: #333;
}

.polepress-payment-option {
    display: block;
    padding: 15px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.polepress-payment-option:hover {
    border-color: #667eea;
    background: #f9f9ff;
}

.polepress-payment-option input[type="radio"] {
    margin-right: 10px;
}

/* Widget Stripe */
.polepress-payment-section {
    margin: 25px 0;
}

.polepress-payment-section h4 {
    margin-bottom: 15px;
    color: #333;
}

.polepress-card-element {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background: #fff;
    transition: border-color 0.3s;
}

.polepress-card-element:hover {
    border-color: #667eea;
}

/* Boutons */
.polepress-button {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.polepress-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    width: 100%;
}

.polepress-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.polepress-button-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.polepress-button-secondary {
    background: #f0f0f0;
    color: #333;
}

.polepress-button-secondary:hover {
    background: #e0e0e0;
}

.polepress-button-danger {
    background: #dc3545;
    color: #fff;
}

.polepress-button-danger:hover {
    background: #c82333;
}

/* Messages */
.polepress-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.polepress-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.polepress-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

/* Liens */
.polepress-login-link,
.polepress-register-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.polepress-login-link a,
.polepress-register-link a,
.polepress-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.polepress-login-link a:hover,
.polepress-register-link a:hover,
.polepress-links a:hover {
    text-decoration: underline;
}

.polepress-links {
    text-align: center;
    margin-top: 15px;
}

/* Page Mon compte */
.polepress-account-section {
    margin-bottom: 40px;
}

.polepress-account-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.polepress-account-table th,
.polepress-account-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

.polepress-account-table th {
    font-weight: 600;
    color: #666;
    width: 40%;
}

.polepress-status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.polepress-status-success {
    background: #d4edda;
    color: #155724;
}

.polepress-status-warning {
    background: #fff3cd;
    color: #856404;
}

.polepress-status-error {
    background: #f8d7da;
    color: #721c24;
}

.polepress-cancel-confirm {
    margin-top: 20px;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
}

.polepress-transactions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.polepress-transactions-table th,
.polepress-transactions-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

.polepress-transactions-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.polepress-logout {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
}

/* Responsive */
@media (max-width: 768px) {
    .polepress-register-box,
    .polepress-login-box,
    .polepress-account-box {
        padding: 20px;
    }

    .polepress-price {
        font-size: 28px;
    }

    .polepress-account-table th,
    .polepress-account-table td {
        display: block;
        width: 100%;
    }

    .polepress-account-table th {
        padding-bottom: 5px;
        border-bottom: none;
    }

    .polepress-account-table td {
        padding-top: 5px;
        margin-bottom: 15px;
    }
}

/* Contenu protégé (shortcode) */
.polepress-restricted {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
}
