/**
 * AI Bridge PRO - Membership CSS
 *
 * @package AIBridge_PRO
 * @since 0.1.0
 */

/* ==========================================================================
   Auth Pages (Login / Register)
   ========================================================================== */

.abpro-auth-page {
    min-height: 100vh;
    padding: 60px 20px;
    padding-top: calc(var(--header-height, 80px) + 60px);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.abpro-auth-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.abpro-login-container {
    max-width: 500px;
    grid-template-columns: 1fr;
}

.abpro-auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.abpro-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.abpro-auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}

.abpro-auth-header p {
    color: #666;
    margin: 0;
}

.abpro-auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.abpro-auth-footer a {
    color: var(--primary-color, #3498db);
    font-weight: 500;
}

/* Benefits Section */
.abpro-auth-benefits {
    padding: 30px;
}

.abpro-auth-benefits h2 {
    font-size: 20px;
    margin: 0 0 25px;
    color: #333;
}

.abpro-auth-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.abpro-auth-benefits li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.abpro-auth-benefits .benefit-icon {
    font-size: 32px;
    line-height: 1;
}

.abpro-auth-benefits strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.abpro-auth-benefits p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.abpro-form {
    width: 100%;
}

.abpro-form-group {
    margin-bottom: 20px;
}

.abpro-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.abpro-form-group .required {
    color: #e74c3c;
}

.abpro-form-group input[type="text"],
.abpro-form-group input[type="email"],
.abpro-form-group input[type="password"],
.abpro-form-group input[type="tel"],
.abpro-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.abpro-form-group input:focus,
.abpro-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color, #3498db);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.abpro-form-group input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.abpro-hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.abpro-checkbox {
    display: flex;
    align-items: center;
}

.abpro-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0;
}

.abpro-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.abpro-remember-row {
    justify-content: space-between;
}

.abpro-forgot-link {
    font-size: 14px;
    color: #666;
}

.abpro-forgot-link:hover {
    color: var(--primary-color, #3498db);
}

.abpro-form-error {
    background: #fee;
    color: #c00;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.abpro-form-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.abpro-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.abpro-form-section h2 {
    font-size: 18px;
    margin: 0 0 20px;
    color: #333;
}

.abpro-form-actions {
    margin-top: 30px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.abpro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.abpro-btn-primary {
    background: #3498db !important;
    color: #fff !important;
}

.abpro-btn-primary:hover,
.abpro-btn-primary:focus {
    background: #2980b9 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.abpro-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.abpro-btn-secondary:hover {
    background: #e0e0e0;
}

.abpro-btn-full {
    width: 100%;
}

.abpro-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   My Page
   ========================================================================== */

.abpro-mypage {
    min-height: 100vh;
    padding: 40px 20px;
    padding-top: calc(var(--header-height, 80px) + 40px);
    background: #f5f7fa;
}

.abpro-mypage-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar */
.abpro-mypage-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.abpro-mypage-user {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.abpro-mypage-user img {
    border-radius: 50%;
    margin-bottom: 15px;
}

.abpro-mypage-user h2 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #333;
}

.abpro-level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.abpro-mypage-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.abpro-mypage-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.abpro-mypage-nav a:hover {
    background: #f5f7fa;
    color: var(--primary-color, #3498db);
}

.abpro-mypage-nav a.active {
    background: var(--primary-color, #3498db);
    color: #fff;
}

.abpro-mypage-nav a .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.abpro-logout-link {
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 15px !important;
}

.abpro-logout-link:hover {
    color: #e74c3c !important;
}

/* Main Content */
.abpro-mypage-main {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.abpro-mypage-main h1 {
    font-size: 24px;
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Notice */
.abpro-notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.abpro-notice-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
}

.abpro-notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.abpro-notice-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.abpro-notice-info {
    background: #e7f3ff;
    border: 1px solid #b6d4fe;
    color: #084298;
}

.abpro-notice-info ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.abpro-notice-info li {
    margin: 5px 0;
}

.abpro-notice p {
    margin: 0 0 5px;
}

.abpro-notice p:last-child {
    margin: 0;
}

/* Dashboard Cards */
.abpro-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.abpro-dashboard-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.abpro-dashboard-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.abpro-dashboard-card .card-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.abpro-dashboard-card h3 {
    font-size: 12px;
    color: #666;
    margin: 0 0 5px;
    font-weight: normal;
}

.abpro-dashboard-card .card-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Quick Actions */
.abpro-quick-actions {
    margin-bottom: 30px;
}

.abpro-quick-actions h2 {
    font-size: 18px;
    margin: 0 0 15px;
}

.abpro-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.abpro-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f0f0f0;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.abpro-action-btn:hover {
    background: #e0e0e0;
}

.abpro-action-btn.abpro-action-primary {
    background: var(--primary-color, #3498db);
    color: #fff;
}

.abpro-action-btn.abpro-action-primary:hover {
    background: var(--primary-dark, #2980b9);
}

/* Benefits */
.abpro-benefits h2 {
    font-size: 18px;
    margin: 0 0 15px;
}

.abpro-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.abpro-benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.abpro-benefits-list li.enabled {
    background: #d4edda;
}

.abpro-benefits-list li.disabled {
    background: #f8f9fa;
    color: #999;
}

.abpro-benefits-list .benefit-status {
    font-size: 16px;
    font-weight: bold;
}

.abpro-benefits-list li.enabled .benefit-status {
    color: #28a745;
}

.abpro-benefits-list li.disabled .benefit-status {
    color: #dc3545;
}

/* ==========================================================================
   Content Restriction
   ========================================================================== */

.abpro-restriction-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 30px 0;
}

.abpro-restriction-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.abpro-restriction-message h3 {
    font-size: 20px;
    margin: 0 0 10px;
    color: #333;
}

.abpro-restriction-message p {
    color: #666;
    margin: 0 0 20px;
}

.abpro-restriction-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.abpro-preview-content {
    position: relative;
}

.abpro-preview-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
    .abpro-auth-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .abpro-auth-benefits {
        display: none;
    }

    .abpro-mypage-container {
        grid-template-columns: 1fr;
    }

    .abpro-mypage-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .abpro-auth-card {
        padding: 30px 20px;
    }

    .abpro-mypage-main {
        padding: 20px;
    }

    .abpro-dashboard-cards {
        grid-template-columns: 1fr;
    }

    .abpro-benefits-list {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Register Complete Page
   ========================================================================== */

.abpro-register-complete {
    max-width: 500px;
    margin: 0 auto;
}

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

.abpro-complete-content {
    text-align: center;
}

.abpro-complete-content .abpro-lead {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.abpro-email-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    font-size: 16px;
}

.abpro-complete-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.abpro-complete-content .abpro-notice {
    text-align: left;
    margin: 25px 0;
}

.abpro-complete-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.abpro-complete-actions .abpro-btn {
    min-width: 150px;
}

@media (max-width: 480px) {
    .abpro-complete-actions {
        flex-direction: column;
    }

    .abpro-complete-actions .abpro-btn {
        width: 100%;
    }
}
