/**
 * Csapatkereső Styling
 */

:root {
    --primary-color: #f59e0b;
    --bg-dark: #1a1a2e;
    --bg-card: rgba(30, 30, 46, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
}

#csapatkereső-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ===== TAB NAVIGATION ===== */
.csapatkereső-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(245, 158, 11, 0.1);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ===== TAB CONTENT ===== */
.tab-content {
    display: none;
}

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

/* ===== SUB-TABS ===== */
.sub-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.sub-tab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.sub-tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.sub-tab-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===== FILTERS ===== */
.filters-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-group select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Form group select (modal forms) */
.form-group select {
    width: auto;
    min-width: 150px;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    color-scheme: dark;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group select option {
    background: #1a1a2e;
    color: #e5e7eb;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-create-listing {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), #fbbf24);
    border: none;
    border-radius: 10px;
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-create-listing:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* ===== LISTINGS GRID ===== */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.listing-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.listing-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.listing-card-own {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.listing-card-own::before {
    content: '🏠 SAJÁT';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(16, 185, 129, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6ee7b7;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.listing-instance {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.instance-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.listing-instance h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.listing-keylevel {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.2));
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
}

.listing-schedule {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.listing-slots {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.slot {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 2px solid;
    font-size: 0.8rem;
}

.slot-tank {
    border-color: #3b82f6;
}

.slot-heal {
    border-color: #10b981;
}

.slot-dps {
    border-color: #ef4444;
}

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

.slot-label {
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.slot-status {
    margin-left: auto;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.listing-note-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    padding-left: 0.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-full {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* ===== LOADING ===== */
.loading-spinner {
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: var(--primary-color);
    background: rgba(245, 158, 11, 0.1);
}

.page-btn.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }
}

/* ===== SHARING BUTTONS (Anti-adblock names) ===== */
.nh-actions {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
}

.nh-actions h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nh-action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Adblocker-safe class names: fs (Facebook Sharing), ts (Twitter Sharing), lc (Link Copy) */
.fs,
.ts,
.lc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    min-width: 160px;
    flex: 1;
}

.fs {
    background: #1877f2;
}

.ts {
    background: #1da1f2;
}

.lc {
    background: #4b5563;
}

.fs:hover,
.ts:hover,
.lc:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.nh-copy-feedback {
    display: none;
    color: #10b981;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    animation: nhFadeIn 0.3s ease-out;
}

@keyframes nhFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slot-tank {
    border-color: #3b82f6;
}

.slot-heal {
    border-color: #10b981;
}

.slot-dps {
    border-color: #ef4444;
}

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

.slot-label {
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.slot-status {
    margin-left: auto;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.listing-note-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    padding-left: 0.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-full {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* ===== LOADING ===== */
.loading-spinner {
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: var(--primary-color);
    background: rgba(245, 158, 11, 0.1);
}

.page-btn.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }
}

/* ===== SHARING BUTTONS (Anti-adblock names) ===== */
.nh-actions {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
}

.nh-actions h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nh-action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Adblocker-safe class names: fs (Facebook Sharing), ts (Twitter Sharing), lc (Link Copy) */
.fs,
.ts,
.lc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    min-width: 160px;
    flex: 1;
}

.fs {
    background: #1877f2;
}

.ts {
    background: #1da1f2;
}

.lc {
    background: #4b5563;
}

.fs:hover,
.ts:hover,
.lc:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.nh-copy-feedback {
    display: none;
    color: #10b981;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    animation: nhFadeIn 0.3s ease-out;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
        border-color: rgba(212, 175, 55, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
        border-color: rgba(212, 175, 55, 1);
    }

    100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
        border-color: rgba(212, 175, 55, 0.5);
    }
}

.pulse-gold {
    animation: pulse-gold 2s infinite ease-in-out;
}

/* Élő frissítés villanások */
@keyframes flash-green {
    0% {
        background: rgba(16, 185, 129, 0);
    }

    50% {
        background: rgba(16, 185, 129, 0.4);
    }

    100% {
        background: rgba(16, 185, 129, 0);
    }
}

@keyframes flash-red {
    0% {
        background: rgba(239, 68, 68, 0);
    }

    50% {
        background: rgba(239, 68, 68, 0.4);
    }

    100% {
        background: rgba(239, 68, 68, 0);
    }
}

.flash-up {
    animation: flash-green 2s ease-out;
}

.flash-down {
    animation: flash-red 2s ease-out;
}

/* Listing card hover finomítás */
.listing-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

/* ===== DISCORD WEBHOOK TIP ===== */
.discord-webhook-tip {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(88, 101, 242, 0.05));
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-left: 4px solid #5865f2;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2);
}

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

.tip-icon {
    height: 60px;
    filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.5));
}

.tip-content {
    flex: 1;
}

.tip-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.tip-description {
    font-size: 0.95rem;
    color: #d1d5db;
    line-height: 1.6;
}

.tip-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.discord-btn,
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.discord-btn {
    background: #5865f2;
    color: #fff;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
    border: none;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.4);
}

.contact-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

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

/* ===== RAID SPECIFIC STYLES ===== */
.raid-card {
    position: relative;
    transition: all 0.3s ease;
}

.raid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.difficulty-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.progression-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(107, 114, 128, 0.3);
    border: 1px solid rgba(107, 114, 128, 0.5);
    border-radius: 4px;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-left: 0.5rem;
}

.slot-progress-bar {
    background: rgba(107, 114, 128, 0.2);
    border-radius: 4px;
    overflow: hidden;
    height: 8px;
    margin-top: 0.5rem;
}

.slot-progress-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.slot-progress-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    text-align: center;
}

/* Raid tab specific - animáció eltávolítva, mert zavarná a frissítéseket */
/* R�szletek gomb */
.btn-view-details {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-view-details:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

.btn-view-details:active {
    transform: translateY(0);
}


/* ===== LOADING SPINNER ===== */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(6px);
}

.loading-content {
    text-align: center;
    color: #fff;
}

.loading-text {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* No Listings Message (NO spinner) */
.no-listings {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 500;
}