/**
 * Profilom Modal - Stílusok
 * Prefix: profile-
 */

/* ================================
   MODAL OVERLAY
   ================================ */
.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-modal-overlay.active {
    opacity: 1;
}

/* ================================
   MODAL CONTENT
   ================================ */
.profile-modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.95), rgba(24, 24, 37, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ================================
   BEZÁRÁS GOMB
   ================================ */
.profile-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e5e7eb;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.profile-modal-close:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    transform: rotate(90deg);
}

/* ================================
   FEJLÉC
   ================================ */
.profile-modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--primary-color, #f59e0b);
}

/* ================================
   USER INFO SECTION
   ================================ */
.profile-user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(136, 68, 255, 0.5);
    box-shadow: 0 0 20px rgba(136, 68, 255, 0.3);
}

.profile-user-details {
    flex: 1;
}

.profile-user-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.25rem;
}

.profile-user-role {
    font-size: 0.95rem;
    color: #9ca3af;
}

/* ================================
   BEÁLLÍTÁSOK SECTION
   ================================ */
.profile-settings-section {
    margin-bottom: 1.5rem;
}

.profile-settings-section h3 {
    font-size: 1.2rem;
    color: var(--primary-color, #f59e0b);
    margin: 0 0 1rem 0;
}

.profile-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.profile-setting-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.profile-setting-item.profile-setting-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-setting-info {
    flex: 1;
}

.profile-setting-label {
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.25rem;
}

.profile-setting-description {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* ================================
   TOGGLE SWITCH (WoW-os design)
   ================================ */
.profile-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    flex-shrink: 0;
}

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

.profile-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(100, 100, 100, 0.3);
    border: 2px solid rgba(100, 100, 100, 0.5);
    transition: all 0.3s ease;
    border-radius: 30px;
}

.profile-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* AKTÍV ÁLLAPOT - WoW-os lila/pink */
input:checked+.profile-toggle-slider {
    background: linear-gradient(135deg, rgba(136, 68, 255, 0.4), rgba(255, 0, 200, 0.3));
    border-color: rgba(136, 68, 255, 0.6);
    box-shadow: 0 0 15px rgba(136, 68, 255, 0.4);
}

input:checked+.profile-toggle-slider:before {
    transform: translateX(30px);
    background: linear-gradient(135deg, #8844ff, #ff00c8);
    box-shadow: 0 0 10px rgba(136, 68, 255, 0.6);
}

/* HOVER EFFEKT */
.profile-toggle-switch:hover .profile-toggle-slider {
    border-color: rgba(136, 68, 255, 0.4);
}

input:checked+.profile-toggle-slider:hover {
    border-color: rgba(136, 68, 255, 0.8);
    box-shadow: 0 0 20px rgba(136, 68, 255, 0.5);
}

/* DISABLED ÁLLAPOT */
input:disabled+.profile-toggle-slider {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ================================
   FOOTER
   ================================ */
.profile-modal-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.profile-modal-footer p {
    margin: 0;
    font-size: 0.85rem;
    color: #9ca3af;
    font-style: italic;
}

/* ================================
   NOTIFICATION
   ================================ */
.profile-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.95), rgba(24, 24, 37, 0.95));
    border: 1px solid rgba(136, 68, 255, 0.5);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #e5e7eb;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(136, 68, 255, 0.3);
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 400px;
}

.profile-notification.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    .profile-modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .profile-user-section {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
    }

    .profile-setting-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-toggle-switch {
        align-self: flex-end;
    }

    .profile-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* ================================
   SCROLLBAR STYLING
   ================================ */
.profile-modal-content::-webkit-scrollbar {
    width: 8px;
}

.profile-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.profile-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8844ff, #ff00c8);
    border-radius: 10px;
}

.profile-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #9955ff, #ff33d1);
}