/* Edit Profile Panel Styles */

.edit-profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.edit-profile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.edit-profile-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 600px;
    height: 100vh;
    background-color: #000000;
    color: #ffffff;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.edit-profile-overlay.active .edit-profile-panel {
    right: 0;
}

/* Header with background */
.ep-header {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.ep-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.ep-background-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
    padding: 2px;
}

.ep-background-placeholder .bg-cell {
    background-color: #2a2a2a;
    border-radius: 4px;
}

.ep-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
}

.ep-header:hover .ep-upload-overlay {
    opacity: 1;
}

.ep-upload-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.ep-upload-btn:hover {
    background-color: #ffffff;
}

.ep-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.ep-logo img {
    width: 100%;
    height: auto;
}

.ep-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    z-index: 10;
}

.ep-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Profile Section */
.ep-profile {
    padding: 0 2rem 2rem;
    margin-top: -60px;
    position: relative;
}

.ep-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.ep-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #000;
    object-fit: cover;
    background-color: #333;
}

.ep-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #000;
    background: linear-gradient(135deg, var(--event-secondary) 0%, #6B5437 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.ep-avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.ep-avatar-upload:hover {
    transform: scale(1.1);
}

.ep-name {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ep-title {
    text-align: center;
    color: #999;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.ep-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ep-action-btn {
    flex: 1;
    padding: 0.875rem;
    border: 2px solid #333;
    background-color: transparent;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ep-action-btn:hover {
    border-color: #666;
    background-color: #1a1a1a;
}

.ep-action-btn.primary {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.ep-action-btn.primary:hover {
    background-color: #e5e5e5;
}

/* Tabs */
.ep-tabs {
    display: flex;
    border-bottom: 1px solid #333;
    margin-bottom: 2rem;
}

.ep-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.ep-tab:hover {
    color: #999;
}

.ep-tab.active {
    color: #fff;
}

.ep-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #fff;
}

/* Tab Content */
.ep-tab-content {
    display: none;
}

.ep-tab-content.active {
    display: block;
}

/* Form Fields */
.ep-form-group {
    margin-bottom: 1.5rem;
}

.ep-toggle-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-top: 1px solid #2a2a2a;
}

.ep-toggle-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ep-toggle-question {
    color: #e5e5e5;
    font-size: 0.92rem;
    font-weight: 600;
}

.ep-toggle-note {
    color: #909090;
    font-size: 0.8rem;
    line-height: 1.45;
    max-width: 460px;
}

.ep-toggle-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.ep-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ep-toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1px solid #3a3a3a;
    background: #2a2a2a;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ep-toggle-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6a6a6a;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ep-toggle-switch input:checked + .ep-toggle-track {
    background: color-mix(in srgb, var(--event-primary) 25%, transparent);
    border-color: color-mix(in srgb, var(--event-primary) 45%, #3a3a3a);
}

.ep-toggle-switch input:checked + .ep-toggle-track::after {
    transform: translateX(18px);
    background: var(--event-primary);
}

.ep-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #999;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ep-input,
.ep-textarea {
    width: 100%;
    padding: 0.875rem;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.ep-input:focus,
.ep-textarea:focus {
    outline: none;
    border-color: #666;
}

.ep-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Social Media */
.ep-social {
    margin-bottom: 2rem;
}

.ep-social-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #999;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ep-social-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
}

.ep-social-input svg {
    width: 20px;
    height: 20px;
    color: #666;
    flex-shrink: 0;
}

.ep-social-input input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

/* Location Tags */
.ep-location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ep-location-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #fff;
}

.ep-location-tag img {
    width: 20px;
    height: auto;
}

/* Interests */
.ep-interests-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #999;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ep-interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ep-interest-tag {
    padding: 0.75rem 1.25rem;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.ep-interest-tag:hover {
    border-color: #666;
}

.ep-interest-tag.selected {
    background-color: var(--event-secondary);
    border-color: var(--event-secondary);
    color: #fff;
}

/* Save Button */
.ep-save-btn {
    width: 100%;
    padding: 1rem;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2rem;
    transition: background-color 0.2s;
}

.ep-save-btn:hover {
    background-color: #e5e5e5;
}

.ep-save-btn:disabled {
    background-color: #333;
    color: #666;
    cursor: not-allowed;
}

/* Hidden file input */
input[type="file"].hidden {
    display: none;
}

/* Loading State */
.ep-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .edit-profile-panel {
        max-width: 100%;
    }
    
    .ep-profile {
        padding: 0 1.5rem 2rem;
    }
    
    .ep-name {
        font-size: 1.5rem;
    }
}
