/* Profile Page Styles for CheapOTT */

.main-content {
    display: flex;
    gap: 30px;
    margin: 40px auto;
}

/* Profile Navigation */
.profile-nav {
    width: 250px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex-shrink: 0;
}

.profile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-nav li {
    border-bottom: 1px solid var(--border-color);
}

.profile-nav li:last-child {
    border-bottom: none;
}

.profile-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}

.profile-nav a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.profile-nav a:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.profile-nav a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Profile Content */
.profile-content {
    flex: 1;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.profile-tab {
    display: none;
}

.profile-tab.active {
    display: block;
    animation: fadeIn 0.3s;
}

/* Profile Card */
.profile-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.profile-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.profile-avatar i {
    font-size: 40px;
    color: white;
}

.profile-info h3 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.profile-info p {
    margin: 0 0 5px 0;
    color: var(--secondary-text);
}

.profile-stats {
    display: flex;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    flex: 1;
    padding: 15px;
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--secondary-text);
    font-size: 14px;
}

/* Profile Section */
.profile-section {
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.profile-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Settings Section */
.settings-section {
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.settings-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-color);
}

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

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

.danger-zone {
    border: 1px solid #f44336;
}

.danger-zone h4 {
    color: #f44336;
}

/* Subscription List */
.subscription-list {
    margin-top: 20px;
}

.subscription-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    margin-bottom: 15px;
}

.subscription-details {
    flex: 1;
}

.subscription-details h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.subscription-plan {
    color: var(--secondary-text);
    margin: 0 0 5px 0;
}

.subscription-date {
    color: var(--secondary-text);
    font-size: 14px;
    margin: 0 0 5px 0;
}

.subscription-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.subscription-status.active {
    background-color: #4CAF50;
    color: white;
}

.subscription-status.cancelled {
    background-color: #F44336;
    color: white;
}

.subscription-status.expired {
    background-color: #9E9E9E;
    color: white;
}

.subscription-price {
    margin: 0 20px;
    text-align: right;
}

.subscription-price .price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

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

/* Order List */
.order-list {
    margin-top: 20px;
}

.order-item {
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(var(--primary-color-rgb), 0.05);
    border-bottom: 1px solid var(--border-color);
}

.order-id h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.order-id p {
    margin: 0;
    color: var(--secondary-text);
    font-size: 14px;
}

.order-total p {
    margin: 0;
    font-weight: bold;
    color: var(--text-color);
}

.order-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.order-status.completed {
    background-color: #4CAF50;
    color: white;
}

.order-status.processing {
    background-color: #2196F3;
    color: white;
}

.order-status.cancelled {
    background-color: #F44336;
    color: white;
}

.order-items {
    padding: 15px 20px;
}

.order-product {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.order-product:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.product-name {
    margin: 0;
    color: var(--text-color);
}

.product-price {
    margin: 0;
    font-weight: bold;
    color: var(--primary-color);
}

.order-actions {
    padding: 10px 20px;
    background-color: rgba(var(--primary-color-rgb), 0.05);
    border-top: 1px solid var(--border-color);
    text-align: right;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.empty-state i {
    font-size: 50px;
    color: var(--secondary-text);
    margin-bottom: 15px;
}

.empty-state p {
    margin-bottom: 20px;
    color: var(--secondary-text);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .profile-nav {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .profile-nav ul {
        display: flex;
        overflow-x: auto;
    }
    
    .profile-nav li {
        border-bottom: none;
        border-right: 1px solid var(--border-color);
    }
    
    .profile-nav li:last-child {
        border-right: none;
    }
    
    .profile-nav a {
        padding: 10px 15px;
        white-space: nowrap;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .subscription-item, .order-header {
        flex-direction: column;
        text-align: center;
    }
    
    .subscription-price, .subscription-actions {
        margin-top: 15px;
    }
    
    .order-header > div {
        margin-bottom: 10px;
    }
    
    .order-header > div:last-child {
        margin-bottom: 0;
    }
}

/* Dark Mode Support */
.dark-mode .profile-nav,
.dark-mode .profile-content,
.dark-mode .profile-card,
.dark-mode .profile-section,
.dark-mode .settings-section,
.dark-mode .subscription-item,
.dark-mode .order-item,
.dark-mode .empty-state {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.dark-mode .profile-header {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .order-header,
.dark-mode .order-actions {
    background-color: rgba(255, 255, 255, 0.05);
}
