/**
 * WoWozás szigete - Layout CSS
 * Glassmorphism design: áttetszőség, blur, kellemes színek
 */

/* ==========================================   HTML & GLOBAL
   ========================================== */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* ==========================================   BODY & BACKGROUND
   ========================================== */

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: url('../img/island-bg2.jpg') center center / cover no-repeat fixed;
    position: relative;
    color: #e8f0f7;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Háttér sötétítő overlay - ÁTLÁTSZÓBB */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.4) 0%, rgba(15, 23, 41, 0.5) 100%);
    z-index: -1;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ==========================================
   HEADER (Fejléc) - Glassmorphism
   ========================================== */

.site-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0 2rem;
    position: relative;
    z-index: 1000;
    /* Base layer */
}

.header-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    min-height: 380px;
}

/* Logo - Animált színátmenet (WoW Midnight expansion színek: kék → lila → cyan) */
.logo-section {
    margin: 0;
    padding: 0;
    height: auto;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* Tompító overlay - eltünteti a csúnya keretet */
.logo-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

}

.logo-section .site-logo {
    height: 350px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: block;
    object-fit: contain;
    border-radius: 20px;
}

/* Videó/Kép logo stílusok */
.site-logo-video {
    height: 350px;
    width: auto;
    object-fit: contain;
    object-position: center center;
    position: relative;
    z-index: 0;
}

.site-logo-video:hover {
    opacity: 0.9;
}

.logo-text {
    background: linear-gradient(135deg,
            #2d4a7c 0%,
            #5b7ec7 20%,
            #7b68ee 40%,
            #a78bfa 60%,
            #60a5fa 80%,
            #2d4a7c 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 10s ease-in-out infinite, pulseGlow 3s ease-in-out infinite;
    font-weight: 900;
    -webkit-text-stroke: 2px rgba(217, 168, 84, 0.6);
    filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.8)) drop-shadow(0 0 40px rgba(123, 104, 238, 0.6)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.9)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7));
    position: relative;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.8)) drop-shadow(0 0 40px rgba(123, 104, 238, 0.6)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.9)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(96, 165, 250, 1)) drop-shadow(0 0 60px rgba(123, 104, 238, 0.9)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.9)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7));
    }
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

/* User section - Glassmorphism */
.user-section {
    position: relative;
    z-index: 2000;
    /* Menü felett */
    margin-left: auto;
}

.user-section .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.3);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.user-name {
    font-weight: 600;
    color: #fff;
}

.user-role {
    font-size: 0.85rem;
    opacity: 0.9;
    color: #b0d4ff;
}

/* Login button - Glassmorphism */
.login-btn {
    background: rgba(88, 101, 242, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(88, 101, 242, 0.4);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.login-btn:hover {
    background: rgba(88, 101, 242, 0.4);
    border-color: rgba(88, 101, 242, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.3);
}

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

.dropdown-toggle {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.3rem;
    transition: transform 0.3s;
}

.dropdown-toggle:hover {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 31, 58, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 200px;
    margin-top: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 2100;
    /* User section felett */
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffd700;
}

.dropdown-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* ==========================================
   MENU (Navigáció) - Lekerekített gombok
   ========================================== */

.main-menu {
    background: rgba(15, 20, 35, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1rem 2rem;
    margin-top: -10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 100;
    /* Dropdown alá */
}

.menu-container {
    width: 85%;
    margin: 0 auto;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    /* NE törjön új sorba */
    align-items: center;
}

/* Menu item container - pozíció submenu-hoz */
.menu-list>li {
    position: relative;
}

/* Fancy lekerekített menu gombok */
.menu-item a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    color: #d0e0f0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-item a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(135, 206, 235, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-item a:hover {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.15);
}

.menu-item a:hover::before {
    opacity: 1;
}

.menu-item.active a {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.menu-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 4px currentColor);
}

/* ==========================================
   MAIN CONTENT (3 sávos layout)
   ========================================== */

.main-content {
    flex: 1;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 70% 30%;
    grid-template-rows: auto 1fr;
    gap: 1.5rem;
}

/* ==========================================
   3-as WIDGET SÁV (Random content)
   ========================================== */

.widget-bar {
    grid-column: 1 / -1;
    background: transparent;
    border-radius: 20px;
    padding: 1.5rem;
}

/* ==========================================
   1-es TARTALOM (70% - Fő tartalom)
   ========================================== */

.content-area {
    background: rgba(15, 20, 35, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    min-height: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Tartalom formázás */
/* Page header - Glassmorphism */
.page-header {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    margin: 0 0 0.5rem;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #ffd700 0%, #87ceeb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: #b8cfe6;
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

.page-content {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Info card-ok - Glassmorphism */
.info-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.info-card h2 {
    margin: 0 0 1rem;
    font-size: 1.4rem;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #87ceeb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-card p {
    line-height: 1.7;
    color: #d0e0f0;
    margin: 0.75rem 0;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.info-card ul li {
    padding: 0.6rem 0;
    color: #c8dff5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card ul li::before {
    content: '✨';
    font-size: 1.1rem;
}

/* News item */
.news-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.news-item h2 {
    margin: 0 0 0.5rem;
    color: #ffd700;
    font-size: 1.3rem;
}

.news-date {
    color: #87ceeb;
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0 0 1rem;
}

/* ==========================================
   2-es SIDEBAR (30% - Widgetek)
   ========================================== */

.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: rgba(15, 20, 35, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sidebar-widget h3 {
    margin: 0 0 1rem;
    background: linear-gradient(135deg, #ffd700 0%, #87ceeb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
}

/* ==========================================
   WIDGET STÍLUSOK (Random content)
   ========================================== */

.widget {
    background: transparent;
    border-radius: 16px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 60%;
    margin: 0 auto;
    /* animation: slideRightToLeft 12s ease-in-out infinite;*/
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: transparent;
    border-bottom: none;
}

.widget-title {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #ffd700 0%, #87ceeb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.widget-refresh {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.4rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.widget-refresh:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(180deg);
}

.widget-body {
    padding: 1.5rem;
}

/* Random content card */
.random-content-card {
    color: #fff;
}

.content-type {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 215, 0, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffd700;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.content-title {
    margin: 0.5rem 0;
    font-size: 1.3rem;
    color: #fff;
}

.content-description {
    margin: 0.5rem 0 1rem;
    opacity: 0.9;
    color: #d0e0f0;
}

.content-link {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.content-link:hover {
    color: #87ceeb;
    text-shadow: 0 0 10px rgba(135, 206, 235, 0.5);
}

/* ==========================================
   FOOTER (Lábléc) - Glassmorphism
   ========================================== */

.site-footer {
    background: rgba(26, 31, 58, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    padding: 2rem 2rem 1rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    color: #b8cfe6;
}

.footer-title {
    background: linear-gradient(90deg, #ffd700 0%, #87ceeb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-description {
    line-height: 1.6;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #b8cfe6;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffd700;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.copyright,
.disclaimer {
    margin: 0.5rem 0;
    opacity: 0.7;
    font-size: 0.9rem;
    color: #b8cfe6;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 65% 35%;
    }
}

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar-area {
        grid-row: 3;
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Transition kikapcsolás gyors átváltáshoz */
    * {
        transition: none !important;
    }

    /* Header mobil optimalizálás */
    .site-header {
        padding: 0 0.5rem;
    }

    .header-container {
        width: 100%;
        max-width: 100% !important;
        padding: 1rem 0;
        min-height: auto;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .logo-section {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        height: auto;
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 0;
    }

    .site-logo-video {
        height: 150px !important;
    }

    .logo-section .site-logo {
        height: 150px !important;
        font-size: 3rem;
        padding: 0;
    }

    /* User section mobil */
    .user-section {
        position: relative !important;
        margin-left: 0 !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .user-section .user-info {
        padding: 0.4rem 0.8rem;
        gap: 0.5rem;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }

    .user-name {
        font-size: 0.9rem;
    }

    .user-role {
        font-size: 0.75rem;
    }

    .login-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Menu mobil */
    .site-menu {
        padding: 0 0.5rem;
    }

    .menu-container {
        width: 100%;
        max-width: 100% !important;
        padding: 0;
    }

    .menu-list {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .menu-item a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .menu-text {
        display: none;
    }

    /* Main content mobil */
    .page-wrapper {
        padding: 0;
        width: 100%;
    }

    .main-content {
        padding: 0.5rem;
        margin: 0.5rem auto;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }

    /* Widget bar mobil */
    .widget-bar {
        padding: 0.5rem;
        margin: 0;
    }

    /* Content area mobil */
    .content-area {
        padding: 1rem;
    }

    /* Sidebar mobil */
    .sidebar-area {
        padding: 0;
        width: 100%;
    }

    /* Footer mobil */
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding: 2rem 0.5rem;
    }

    /* Random widget mobil optimalizálás */
    .widget {
        width: 90%;
        font-size: 0.9rem;
    }

    .widget-title {
        font-size: 1rem;
    }

    .content-title {
        font-size: 1.1rem;
    }

    .content-image {
        height: 120px !important;
        font-size: 2.5rem !important;
    }

    /* Footer mobil fix */
    .footer-container {
        width: 100%;
        max-width: 100% !important;
    }

    .site-footer {
        padding: 1rem;
    }
}

/* ==========================================
   LOADING ANIMATION
   ========================================== */

.content-loading {
    text-align: center;
    padding: 3rem;
    opacity: 0.6;
    color: #87ceeb;
}

.content-loading::after {
    content: '⏳';
    font-size: 3rem;
    animation: spin 2s linear infinite;
    display: block;
    margin-top: 1rem;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Random widget - jobbról balra csúszás */
@keyframes slideRightToLeft {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    10% {
        transform: translateX(50%);
        opacity: 1;
    }

    50% {
        transform: translateX(0);
        opacity: 1;
    }

    90% {
        transform: translateX(-50%);
        opacity: 1;
    }

    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}