/**
 * Expansion Info - CSS
 * Glassmorphism design a Stílus Dokumentáció alapján
 */

/* ==========================================
   RESET & BASE
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e8f0f7;
    overflow-x: hidden;
    position: relative;
}

/* Háttér - island-bg2.jpg + overlay */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../img/island-bg2.jpg') center center / cover no-repeat fixed;
    z-index: -2;
}

.page-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.4) 0%, rgba(15, 23, 41, 0.5) 100%);
    z-index: -1;
}

/* ==========================================
   MAIN CONTAINER
   ========================================== */

.expansion-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 100vh;
}

/* ==========================================
   HEADER - Logo + Visszagomb
   ========================================== */

.expansion-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
}

/* Visszagomb - Bal felső (lila) */
.back-button {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #a78bfa;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.back-button:hover {
    background: rgba(139, 92, 246, 0.4);
    transform: translateX(-4px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.back-button svg {
    width: 20px;
    height: 20px;
}

/* Logo - Középen (nagyobb, nem kör) */
.logo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.site-logo {
    width: 300px;
    height: auto;
    border-radius: 20px;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(139, 92, 246, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.site-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(139, 92, 246, 0.5);
}

/* ==========================================
   TOP NAVIGATION - Pre-patch & Midnight
   ========================================== */

.top-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    background: rgba(15, 20, 35, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-tab {
    padding: 0.8rem 2rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tab:hover {
    background: rgba(59, 130, 246, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.nav-tab.active {
    background: rgba(59, 130, 246, 0.5);
    border-color: rgba(59, 130, 246, 0.7);
    color: #fff;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

/* ==========================================
   CONTENT LAYOUT - Sidebar + Main
   ========================================== */

.content-layout {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

/* Sidebar menu styles moved to expansion-menu.css */

/* ==========================================
   MAIN CONTENT - Nagy lila kerekített terület
   ========================================== */

.main-content {
    flex: 1;
    max-width: calc(100vw - 400px);
    background: rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 40px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-height: 600px;
    position: relative;
    transition: all 0.3s;
    overflow-x: hidden;
    word-wrap: break-word;
}

.main-content:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(139, 92, 246, 0.5);
}

/* ==========================================
   GLASSMORPHISM BASE CLASS
   ========================================== */

.glass-btn {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.glass-card {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   LOADING SPINNER
   ========================================== */

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 300px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #a78bfa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ==========================================
   CONTENT STYLES
   ========================================== */

#dynamic-content h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#dynamic-content h2 {
    color: #e0e0e0;
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

#dynamic-content p {
    color: #d0e0f0;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

#dynamic-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   RESPONSIVE - Tablet
   ========================================== */

@media (max-width: 1024px) {
    .content-layout {
        flex-direction: column;
    }

    /* Sidebar responsive styles moved to expansion-menu.css */
}

/* ==========================================
   RESPONSIVE - Mobil
   ========================================== */

@media (max-width: 768px) {
    .expansion-container {
        padding: 1rem;
    }

    .expansion-header {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-container {
        position: static;
        transform: none;
    }

    .site-logo {
        width: 60px;
        height: 60px;
    }

    .top-nav {
        flex-direction: column;
        gap: 1rem;
        border-radius: 20px;
    }

    .nav-tab {
        width: 100%;
        padding: 1rem;
    }

    .main-content {
        max-width: 100%;
        padding: 1.5rem;
        border-radius: 20px;
    }

    #dynamic-content h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .back-button span {
        display: none;
    }

    /* Sidebar mobile styles moved to expansion-menu.css */

    .main-content {
        padding: 1rem;
    }

    .article-title-main {
        font-size: 1.4rem;
    }

    .ai-translation-notice {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .notice-icon {
        font-size: 1.5rem;
    }

    .notice-content strong {
        font-size: 1rem;
    }

    .notice-content p {
        font-size: 0.85rem;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

.glass-btn:focus-visible {
    outline: 3px solid rgba(139, 92, 246, 0.6);
    outline-offset: 2px;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Dynamic menu styles moved to expansion-menu.css */

/* ==========================================
   ARTICLE CONTENT STYLES
   ========================================== */

.article-header {
    margin-bottom: 2rem;
}

.source-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.source-badge.official {
    background: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.source-badge.official:hover {
    background: rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.7);
}

.source-badge.unofficial {
    background: rgba(139, 92, 246, 0.3);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.source-badge.unofficial:hover {
    background: rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.7);
}

.article-title-main {
    font-size: 2.2rem;
    color: #a78bfa;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ==========================================
   AI TRANSLATION NOTICE
   ========================================== */

.ai-translation-notice {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    margin: 1.5rem 0 2rem 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(234, 88, 12, 0.1) 100%);
    border-left: 4px solid rgba(249, 115, 22, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2);
}

.notice-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.notice-content {
    flex: 1;
    color: #fed7aa;
}

.notice-content strong {
    display: block;
    color: #fb923c;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.notice-content p {
    color: #fde68a;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.notice-content a {
    color: #60a5fa;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.notice-content a:hover {
    color: #93c5fd;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(15, 20, 35, 0.6);
    border-radius: 6px;
}

.meta-icon {
    font-size: 1.1rem;
}

/* Category Badge Colors */
.badge-systems {
    background: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.badge-class_changes {
    background: rgba(139, 92, 246, 0.3);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.badge-events {
    background: rgba(239, 68, 68, 0.3);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.badge-pvp {
    background: rgba(249, 115, 22, 0.3);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.5);
}

.badge-general {
    background: rgba(34, 197, 94, 0.3);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.article-content {
    color: #d0e0f0;
    font-size: 1.05rem;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.article-content p {
    margin-bottom: 1.2rem;
    max-width: 100%;
    overflow-wrap: break-word;
}

.article-content ul {
    list-style-position: inside;
    margin-bottom: 1.2rem;
    padding-left: 1rem;
}

.article-content ul li {
    margin-bottom: 0.5rem;
    color: #d0e0f0;
}

/* ==========================================
   TABLE STYLES
   ========================================== */

.glassmorphism-table {
    background: rgba(15, 20, 35, 0.65);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
    max-width: 100%;
}

.expansion-table {
    width: 100%;
    border-collapse: collapse;
    color: #d0e0f0;
}

.expansion-table thead {
    background: rgba(139, 92, 246, 0.3);
    border-bottom: 2px solid rgba(139, 92, 246, 0.5);
}

.expansion-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: #c084fc;
    font-size: 1rem;
}

.expansion-table tbody tr {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    transition: background 0.3s ease;
}

.expansion-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

.expansion-table td {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
}

.expansion-table td:first-child {
    font-weight: 600;
    color: #a78bfa;
}

/* ==========================================
   MEDIA GALLERY
   ========================================== */

.media-gallery {
    margin: 2rem 0;
}

.media-gallery h3 {
    color: #a78bfa;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(15, 20, 35, 0.6);
    border: 2px solid rgba(167, 139, 250, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: rgba(167, 139, 250, 0.6);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-overlay span {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 0.8rem;
    background: rgba(15, 20, 35, 0.9);
    color: #d0e0f0;
    font-size: 0.9rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Video wrapper és player styling */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.gallery-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    background: #000;
}

/* ==========================================
   SHARE ACTIONS (Adblocker-safe)
   ========================================== */
.ei-actions {
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.ei-actions h3 {
    margin: 0 0 1rem 0;
    color: #e5e7eb;
    font-size: 1.1rem;
    font-weight: 600;
}

.ei-action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ei-act-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
}

.ei-act-btn svg {
    flex-shrink: 0;
}

.ei-act-fb {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.ei-act-fb:hover {
    background: #145dbf;
    border-color: #145dbf;
    transform: translateY(-2px);
}

.ei-act-tw {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.ei-act-tw:hover {
    background: #1a8cd8;
    border-color: #1a8cd8;
    transform: translateY(-2px);
}

.ei-act-lc {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}

.ei-act-lc:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.ei-copy-feedback {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    border-radius: 8px;
    color: #6ee7b7;
    font-weight: 500;
    text-align: center;
}

/* ==========================================
   LIGHTBOX OVERLAY
   ========================================== */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(15, 20, 35, 0.9);
    border-radius: 8px;
    color: #d0e0f0;
    font-size: 1rem;
    text-align: center;
    max-width: 600px;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(239, 68, 68, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(59, 130, 246, 1);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.8rem 1.5rem;
    background: rgba(15, 20, 35, 0.9);
    color: #a78bfa;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 10001;
}

/* ==========================================
   TAGS
   ========================================== */

.article-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.article-tags h4 {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS - NEW COMPONENTS
   ========================================== */

@media (max-width: 768px) {
    .article-title-main {
        font-size: 1.6rem;
    }

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

    .lightbox-prev {
        left: 1rem;
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .lightbox-next {
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }

    /* Social share buttons responsive */
    .ei-action-buttons {
        flex-direction: column;
    }

    .ei-act-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.6rem;
    }

    .category-header {
        font-size: 0.9rem;
    }

    .article-link {
        font-size: 0.85rem;
    }
}