/* ===== PROFILE PAGE CSS ===== */

.profile-page {
    min-height: 100vh;
    background: var(--primary-black);
    padding: 100px 0 60px;
}

/* Header */
.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-gray);
}

/* Content Layout */
.profile-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #4ecdc4 0%, #3db8b0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 5px;
}

.profile-email {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(78, 205, 196, 0.2);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #4ecdc4;
}

.stat-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 5px;
}

/* Profile Navigation */
.profile-nav {
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: 15px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-nav-item {
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-nav-item:hover {
    background: rgba(78, 205, 196, 0.1);
    color: #4ecdc4;
}

.profile-nav-item.active {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    border-left: 3px solid #4ecdc4;
}

/* Main Content */
.profile-main {
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: 15px;
    padding: 40px;
}

.profile-tab {
    display: none;
}

.profile-tab.active {
    display: block;
}

/* Section */
.profile-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(78, 205, 196, 0.2);
}

/* Form */
.profile-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.08);
}

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-gray);
}

/* Messages */
.message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary {
    padding: 14px 30px;
    background: linear-gradient(135deg, #4ecdc4 0%, #3db8b0 100%);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-text,
.btn-loader {
    display: inline-block;
}

.loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Settings */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(78, 205, 196, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.setting-item:hover {
    border-color: rgba(78, 205, 196, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.setting-info {
    flex: 1;
}

.setting-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 5px;
}

.setting-desc {
    font-size: 14px;
    color: var(--text-gray);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(78, 205, 196, 0.3);
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-gray);
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(78, 205, 196, 0.2);
    border-color: #4ecdc4;
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: #4ecdc4;
}

/* Danger Zone */
.danger-zone {
    margin-top: 40px;
    padding: 25px;
    background: rgba(239, 68, 68, 0.05);
    border: 2px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
}

.danger-title {
    font-size: 18px;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 10px;
}

.danger-desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.btn-danger {
    padding: 12px 24px;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
    border-radius: 10px;
    color: #ef4444;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .profile-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 15px;
    }
    
    .profile-nav-item {
        white-space: nowrap;
        border-left: none;
    }
    
    .profile-nav-item.active {
        border-left: none;
        border-bottom: 3px solid #4ecdc4;
    }
}

@media (max-width: 768px) {
    .profile-page {
        padding: 80px 0 40px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .profile-main {
        padding: 25px 20px;
    }
    
    .profile-card {
        padding: 20px;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .profile-header {
        margin-bottom: 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .profile-main {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}