/**
 * Account page styles for EarningsIQ
 * 
 * This file contains styles for the user account management page,
 * including subscription information, account details, and user preferences.
 */

.account-page {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.account-header {
    text-align: center;
    margin-bottom: 40px;
}

.account-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.account-header p {
    color: #666;
    font-size: 16px;
}

.account-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.account-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Account information styles */
.account-info-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.account-info-row {
    display: flex;
    flex-wrap: wrap;
}

.info-label {
    font-weight: 500;
    color: #666;
    width: 150px;
    flex-shrink: 0;
}

.info-value {
    color: #333;
    flex-grow: 1;
}

/* Subscription styles */
.subscription-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.current-plan {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.current-plan h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #666;
}

.plan-badge {
    display: inline-block;
    background-color: #e0f2f1;
    color: #00796b;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.plan-badge.pro {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.plan-badge.free {
    background-color: #f5f5f5;
    color: #616161;
}

.plan-description {
    color: #666;
    line-height: 1.5;
}

.subscription-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Newsletter toggle */
.newsletter-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.newsletter-description {
    color: #666;
    font-size: 14px;
}

/* Account actions */
.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.secondary-btn {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.secondary-btn:hover {
    background-color: #eee;
}

.danger-btn {
    background-color: #fff;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.danger-btn:hover {
    background-color: #ffebee;
}

/* Responsive design */
@media (max-width: 768px) {
    .account-page {
        padding: 20px 15px;
    }
    
    .account-section {
        padding: 20px;
    }
    
    .info-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .info-value {
        width: 100%;
    }
    
    .subscription-actions {
        flex-direction: column;
    }
    
    .account-actions {
        flex-direction: column;
    }
    
    .secondary-btn, .danger-btn {
        width: 100%;
    }
}
