/**
 * Header User Section CSS
 * Bejelentkezés/Profil komponens stílusok + Dropdown menü
 */

/* Header User Section */
.header-user-section {
    position: absolute;
    right: 4rem;
    display: flex;
    align-items: center;
}

/* User Dropdown Container */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid var(--accent-gold);
    border-radius: 25px;
    padding: 0.4rem 1.2rem 0.4rem 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-dropdown-toggle:hover {
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent-gold);
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: var(--accent-gold);
    transition: transform 0.3s ease;
}

.user-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    min-width: 250px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: var(--accent-gold);
    padding-left: 1.5rem;
}

.item-icon {
    font-size: 1.2rem;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Divider */
.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 0.5rem 0;
}

/* Section Title */
.dropdown-section-title {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Admin Item */
.admin-item {
    color: var(--accent-gold);
    font-weight: 600;
}

.admin-item:hover {
    background: rgba(255, 215, 0, 0.2);
}

/* Logout Item */
.logout-item {
    color: #ff6b6b;
}

.logout-item:hover {
    background: rgba(255, 107, 107, 0.1);
    border-left-color: #ff6b6b;
}

.discord-icon {
    font-size: 1.2rem;
    margin-right: 0.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-user-section {
        position: static;
        right: auto;
    }
    
    .user-dropdown-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .user-dropdown.active .user-dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .user-name {
        font-size: 0.95rem;
    }
}

/* ========================================
   KARAKTEREK MODAL STÍLUSOK
   ======================================== */

.characters-container {
    padding: 1rem;
}

.characters-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.characters-description {
    margin: 0;
    font-size: 1rem;
    color: #c0c0c0;
    line-height: 1.6;
}

.characters-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.characters-header .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%);
    color: #fff;
    border: 2px solid rgba(157, 78, 221, 0.5);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.characters-header .btn:hover {
    background: linear-gradient(135deg, #b565ff 0%, #9d4edd 100%);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.6);
    transform: translateY(-2px);
}

.characters-header .btn-battlenet {
    background: linear-gradient(135deg, #00aeff 0%, #0080ff 100%);
    border: 2px solid rgba(0, 174, 255, 0.5);
}

.characters-header .btn-battlenet:hover {
    background: linear-gradient(135deg, #33c0ff 0%, #00aeff 100%);
    box-shadow: 0 0 20px rgba(0, 174, 255, 0.6);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Karakterek lista */
.characters-list {
    min-height: 300px;
}

/* Üres állapot */
.characters-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.characters-empty p {
    margin: 0.5rem 0;
    color: #c0c0c0;
    font-size: 1.1rem;
}

.empty-hint {
    font-size: 0.95rem !important;
    color: #888 !important;
}

/* Karakterek grid (ha van karakter) */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.character-card {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative; /* Törlés gomb pozicionálásához */
}

.character-card:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transform: translateY(-4px);
}

/* Karakter törlés gomb */
.char-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 59, 48, 0.8);
    border: 2px solid rgba(255, 59, 48, 1);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.char-delete-btn:hover {
    background: rgba(255, 59, 48, 1);
    border-color: #fff;
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.8);
}

.char-delete-btn:active {
    transform: scale(0.95) rotate(90deg);
}

.char-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.char-realm {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.char-class {
    font-size: 1rem;
    color: #c0c0c0;
    font-weight: 600;
}

/* Character card részletes stílusok */
.char-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.char-avatar {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid currentColor;
}

.char-info {
    flex: 1;
}

.main-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 0.5rem;
    text-shadow: none;
}

.char-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.char-spec,
.char-ilvl,
.char-score {
    font-size: 0.9rem;
    color: #aaa;
}

.char-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view {
    background: rgba(157, 78, 221, 0.3);
    color: #fff;
    border: 1px solid rgba(157, 78, 221, 0.6);
}

.btn-view:hover {
    background: rgba(157, 78, 221, 0.5);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.4);
}

/* ========================================
   ÚJ KARAKTER HOZZÁADÁS FORM
   ======================================== */

.add-character-form {
    padding: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffd700;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Realm autocomplete */
.realm-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.5rem;
    display: none;
}

.realm-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.realm-item:last-child {
    border-bottom: none;
}

.realm-item:hover {
    background: rgba(157, 78, 221, 0.3);
}

.realm-item strong {
    display: block;
    color: #ffd700;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.realm-meta {
    font-size: 0.85rem;
    color: #aaa;
}

/* Character Preview */
.character-preview {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 215, 0, 0.2);
}

.loading-spinner {
    text-align: center;
    font-size: 1.2rem;
    color: #ffd700;
    padding: 2rem;
}

.char-preview-card {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.preview-avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 3px solid currentColor;
}

.preview-info h3 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
}

.preview-info p {
    margin: 0.2rem 0;
    font-size: 1rem;
    color: #aaa;
}

.char-class-race {
    font-size: 1.1rem !important;
    color: #fff !important;
    font-weight: 600;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0.3rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
}

.preview-actions {
    display: flex;
    gap: 1rem;
}

.btn-success {
    flex: 1;
    padding: 0.8rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: 2px solid rgba(16, 185, 129, 0.5);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.btn-cancel {
    flex: 1;
    padding: 0.8rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: 2px solid rgba(239, 68, 68, 0.5);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 2rem;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-message h3 {
    color: #ef4444;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}

.error-message p {
    color: #fff;
    font-size: 1.1rem;
    margin: 1rem 0 1.5rem 0;
    line-height: 1.6;
}

.error-message strong {
    color: #ffd700;
}

/* ========================================
   KARAKTER RÉSZLETES NÉZET
   ======================================== */

.char-detail-view {
    padding: 1rem;
}

.char-detail-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.detail-avatar {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    border: 3px solid currentColor;
}

.detail-info {
    flex: 1;
}

.detail-info h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
}

.detail-realm {
    font-size: 1rem;
    color: #aaa;
    margin: 0.3rem 0;
}

.detail-class {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
    margin: 0.3rem 0;
}

.main-badge-large {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.detail-stats-quick {
    display: flex;
    gap: 2rem;
}

.quick-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    min-width: 120px;
}

.quick-stat .stat-label {
    display: block;
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.stat-value-large {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
}

/* Tabs */
.char-detail-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(26, 26, 26, 0.6);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px 8px 0 0;
    color: #c0c0c0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(26, 26, 26, 0.8);
    color: #ffd700;
}

.tab-btn.active {
    background: rgba(157, 78, 221, 0.3);
    border-color: rgba(157, 78, 221, 0.6);
    color: #fff;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: #aaa;
    font-size: 1.1rem;
}

/* Gear Panel */
.gear-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.gear-stat {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 1rem;
    color: #c0c0c0;
}

.gear-stat strong {
    font-size: 1.3rem;
    color: #ffd700;
}

.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.gear-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gear-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.item-icon-wrapper {
    flex-shrink: 0;
}

.item-icon {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    border: 2px solid currentColor;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.item-slot {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.tier-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: linear-gradient(135deg, #ff8000 0%, #ffed4e 100%);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 0.3rem;
}

.item-extras {
    font-size: 0.8rem;
    color: #10b981;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
    border-left: 3px solid #10b981;
}

.item-extras.enchants {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
    border-left-color: #a78bfa;
}

.item-extras strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

.gem-name,
.enchant-name {
    font-size: 0.75rem;
    color: #c0c0c0;
    display: block;
    margin-left: 0.5rem;
}

/* Mythic+ Panel */
.mythic-runs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mythic-run-card {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    align-items: center;
}

.run-dungeon {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.run-level {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffd700;
    text-align: center;
}

.run-timing {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

.run-time {
    font-size: 0.95rem;
    color: #aaa;
    text-align: right;
}

/* Raid Progress Panel */
.raid-progress {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.raid-card {
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
}

.raid-card h3 {
    font-size: 1.5rem;
    color: #ffd700;
    margin: 0 0 0.5rem 0;
    text-transform: capitalize;
}

.raid-summary {
    font-size: 1rem;
    color: #c0c0c0;
    margin-bottom: 1rem;
}

.raid-difficulties {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.diff-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.diff-item.mythic {
    border-color: rgba(239, 68, 68, 0.5);
}

.diff-label {
    display: block;
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.diff-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
}

.diff-item.mythic .diff-value {
    color: #ef4444;
}
