/*
Theme Name: Gigafun
Theme URI: https://gigafunrework.project-nemesis.cz
Author: Project Nemesis
Author URI: https://project-nemesis.cz
Description: Custom dark fantasy WoW TBC theme for Gigafun server
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: gigafun
*/

:root {
  --bg: hsl(220,20%,6%);
  --bg-card: hsl(220,20%,8%);
  --bg-surface: hsl(220,20%,10%);
  --bg-surface-hover: hsl(220,20%,14%);
  --gold: hsl(43,70%,45%);
  --gold-light: hsl(43,80%,55%);
  --gold-dark: hsl(43,60%,30%);
  --border: hsl(43,30%,20%);
  --text: hsl(45,10%,90%);
  --text-muted: hsl(220,10%,55%);
  --crimson: hsl(0,70%,35%);
  --online: hsl(142,70%,45%);
  --radius: 0.375rem;
  --secondary-bg: hsl(220,15%,15%);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:'Inter',sans-serif;background:var(--bg);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
h1,h2,h3,h4,h5,h6{font-family:'Cinzel',serif;font-weight:600;letter-spacing:.05em;line-height:1.2}

::-webkit-scrollbar{width:8px}
::-webkit-scrollbar-track{background:var(--bg-card)}
::-webkit-scrollbar-thumb{background:hsl(43,30%,25%);border-radius:4px}
::-webkit-scrollbar-thumb:hover{background:hsl(43,40%,35%)}

.container{width:100%;max-width:1400px;margin:0 auto;padding:0 1rem}
.text-gradient-gold{background:linear-gradient(to right,hsl(43,85%,65%),hsl(43,75%,50%),hsl(30,55%,40%));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* HEADER */
.site-header{position:fixed;top:0;left:0;right:0;z-index:50;transition:all .3s}
.site-header.transparent{background:transparent}
.site-header.scrolled{background:hsla(220,20%,6%,.95);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--border);box-shadow:0 4px 20px rgba(0,0,0,.3)}
.header-inner{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:4rem}
.site-logo{display:flex;align-items:center;gap:.5rem;justify-self:start}
.site-logo svg{width:2rem;height:2rem;color:var(--gold);transition:transform .3s}
.site-logo:hover svg{transform:scale(1.1)}
.site-logo-text{font-family:'Cinzel',serif;font-size:1.25rem;letter-spacing:.05em}
.main-nav{display:none;align-items:center;gap:.25rem}
.main-nav a{padding:.5rem 1rem;font-size:.875rem;font-weight:500;text-transform:uppercase;letter-spacing:.1em;color:hsla(45,10%,90%,.7);transition:color .3s}
.main-nav a:hover,.main-nav a.active{color:var(--gold)}
.header-right{display:none;align-items:center;gap:.5rem;justify-self:end}

.lang-switcher{position:relative}
.lang-btn{display:flex;align-items:center;gap:.5rem;padding:.4rem .75rem;background:transparent;border:1px solid var(--secondary-bg);border-radius:var(--radius);color:var(--text);cursor:pointer;font-size:.875rem;font-family:inherit}
.lang-btn img{width:20px;height:14px;border-radius:2px;object-fit:cover}
.lang-dropdown{display:none;position:absolute;top:100%;right:0;margin-top:.5rem;background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius);min-width:150px;box-shadow:0 8px 30px rgba(0,0,0,.4);z-index:60;overflow:hidden}
.lang-dropdown.open{display:block}
.lang-option{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;cursor:pointer;transition:background .2s;font-size:.875rem}
.lang-option:hover{background:var(--bg-surface-hover)}
.lang-option.active{background:hsla(43,70%,45%,.1);color:var(--gold)}
.lang-option img{width:20px;height:14px;border-radius:2px;object-fit:cover}

.mobile-toggle{display:flex;padding:.5rem;background:none;border:none;color:hsla(45,10%,90%,.7);cursor:pointer;justify-self:end;grid-column:3}
.mobile-toggle:hover{color:var(--gold)}
.mobile-toggle svg{width:1.5rem;height:1.5rem}
.mobile-menu{display:none;flex-direction:column;gap:.25rem;padding:1rem 0;border-top:1px solid var(--border)}
.mobile-menu.open{display:flex}
.mobile-menu a{padding:.75rem 1rem;font-weight:500;text-transform:uppercase;letter-spacing:.1em;color:hsla(45,10%,90%,.7);border-radius:var(--radius);transition:all .3s}
.mobile-menu a:hover,.mobile-menu a.active{color:var(--gold);background:hsla(43,70%,45%,.05)}

/* BUTTONS */
.btn{text-shadow:none;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 2rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;border-radius:var(--radius);border:none;cursor:pointer;font-size:1rem;transition:all .3s;font-family:'Inter',sans-serif}
.btn-fantasy{background:linear-gradient(180deg,hsl(43,70%,50%) 0%,hsl(43,70%,40%) 100%);color:var(--bg);box-shadow:inset 0 1px 0 hsl(43,80%,60%),0 4px 12px rgba(0,0,0,.5)}
.btn-fantasy:hover{background:linear-gradient(180deg,hsl(43,75%,55%) 0%,hsl(43,70%,45%) 100%);box-shadow:inset 0 1px 0 hsl(43,80%,65%),0 4px 20px hsla(43,70%,45%,.3);transform:translateY(-1px)}
.btn-secondary{background:linear-gradient(180deg,hsl(220,20%,12%) 0%,hsl(220,20%,8%) 100%);color:var(--text);border:2px solid hsl(43,50%,35%);box-shadow:0 4px 12px rgba(0,0,0,.5)}
.btn-secondary:hover{border-color:hsl(43,60%,45%);box-shadow:0 4px 20px hsla(43,70%,45%,.2);transform:translateY(-1px)}
.btn-lg{padding:1rem 2.5rem;font-size:1.125rem}
.btn svg{width:1.25rem;height:1.25rem}

/* HERO */
.hero{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;overflow:hidden}
.hero-bg{position:absolute;inset:0;background-attachment:fixed;background-position:center;background-repeat:no-repeat;background-size:cover}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,transparent 0%,hsla(220,20%,6%,.4) 50%,hsl(220,20%,6%) 100%)}
.hero-texture{position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");opacity:.03;pointer-events:none}
.hero-vignette{position:absolute;inset:0;background:radial-gradient(ellipse at center,transparent 0%,hsla(220,20%,6%,.6) 100%);pointer-events:none}
.hero-content{position:relative;z-index:10;text-align:center;padding-top:5rem}
.hero h1{font-size:clamp(3rem,8vw,6rem);margin-bottom:.25rem;letter-spacing:.1em}.hero h1 .text-gradient-gold{-webkit-text-stroke:1px rgba(0,0,0,.3);filter:drop-shadow(0 2px 20px rgba(0,0,0,.8)) drop-shadow(0 0 60px rgba(0,0,0,.5))}
.hero h2{font-size:clamp(1.5rem,4vw,3rem);margin-bottom:1rem;color:var(--text);text-shadow:0 2px 20px rgba(0,0,0,.7)}
.hero-tagline{font-size:clamp(1.125rem,2vw,1.5rem);color:var(--text-muted);max-width:42rem;margin:0 auto 2rem;text-shadow:0 2px 15px rgba(0,0,0,.6)}
.hero-buttons{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem}
.hero-scroll{position:absolute;bottom:2rem;left:50%;transform:translateX(-50%);color:var(--text-muted);cursor:pointer;background:none;border:none;animation:float 3s ease-in-out infinite;transition:color .3s}
.hero-scroll:hover{color:var(--gold)}
.hero-scroll svg{width:2rem;height:2rem}

/* NEWS */
.section{padding:5rem 0}
.section-header{text-align:center;margin-bottom:3rem}
.section-label{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-bottom:1rem}
.section-label svg{width:1.5rem;height:1.5rem;color:var(--gold)}
.section-label span{font-size:.875rem;text-transform:uppercase;letter-spacing:.15em;color:var(--gold);font-weight:500}
.section-header h2{font-size:clamp(1.5rem,3vw,2.25rem);margin-bottom:1rem}
.section-header p{color:var(--text-muted);max-width:36rem;margin:0 auto}
.news-grid{display:grid;grid-template-columns:1fr;gap:1.5rem}
.news-card{display:flex;flex-direction:column;height:100%;border:1px solid var(--border);background:var(--bg-card);border-radius:var(--radius);padding:1.25rem;transition:all .3s;box-shadow:inset 0 1px 0 hsla(43,30%,25%,.3),0 0 20px rgba(0,0,0,.5)}
.news-card:hover{border-color:hsl(43,50%,30%);box-shadow:inset 0 1px 0 hsla(43,30%,30%,.4),0 0 30px hsla(43,70%,45%,.15);transform:translateY(-2px)}
.news-card-meta{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem;flex-wrap:wrap}
.news-badge{display:inline-block;padding:.15rem .5rem;font-size:.75rem;border-radius:var(--radius);font-weight:500;text-transform:capitalize}
.badge-announcement{background:hsla(43,70%,45%,.2);color:var(--gold);border:1px solid hsla(43,70%,45%,.3)}
.badge-update{background:hsla(210,100%,50%,.2);color:hsl(210,100%,65%);border:1px solid hsla(210,100%,50%,.3)}
.badge-event{background:hsla(270,100%,50%,.2);color:hsl(270,100%,70%);border:1px solid hsla(270,100%,50%,.3)}
.badge-maintenance{background:hsla(50,100%,50%,.2);color:hsl(50,100%,65%);border:1px solid hsla(50,100%,50%,.3)}
.news-date{font-size:.75rem;color:var(--text-muted);display:flex;align-items:center;gap:.25rem}
.news-date svg{width:.75rem;height:.75rem}
.news-card h3{font-size:1.125rem;margin-bottom:.5rem;transition:color .3s}
.news-card:hover h3{color:var(--gold)}
.news-card-excerpt{font-size:.875rem;color:var(--text-muted);flex-grow:1;margin-bottom:.75rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.news-card-link{display:flex;align-items:center;gap:.25rem;color:var(--gold);font-weight:500;font-size:.875rem;margin-top:auto}
.news-card-link svg{width:1rem;height:1rem;transition:transform .3s}
.news-card:hover .news-card-link svg{transform:translateX(4px)}
.section-footer{text-align:center;margin-top:2.5rem}

/* COMMUNITY */
.section-community{background:hsla(220,20%,8%,.5)}
.community-grid{display:grid;grid-template-columns:1fr;gap:1.5rem;max-width:48rem;margin:0 auto}
.community-card{border:1px solid var(--border);background:var(--bg-card);border-radius:var(--radius);padding:1.5rem;text-align:center;transition:all .3s;box-shadow:inset 0 1px 0 hsla(43,30%,25%,.3),0 0 20px rgba(0,0,0,.5);display:block}
.community-card:hover{border-color:hsl(43,50%,30%);transform:translateY(-2px);box-shadow:inset 0 1px 0 hsla(43,30%,30%,.4),0 0 30px hsla(43,70%,45%,.15)}
.community-icon{color:var(--text-muted);margin-bottom:1rem;display:flex;justify-content:center;transition:color .3s}
.community-icon svg{width:2.5rem;height:2.5rem}
.community-card:hover .community-icon.discord{color:#5865F2}
.community-card:hover .community-icon.forum{color:var(--gold)}
.community-card h3{font-size:1.125rem;margin-bottom:.5rem;transition:color .3s}
.community-card:hover h3{color:var(--gold)}
.community-card p{font-size:.875rem;color:var(--text-muted);margin-bottom:.75rem}
.community-card-link{display:flex;align-items:center;justify-content:center;gap:.25rem;color:var(--gold);font-size:.875rem;font-weight:500;margin-top:1rem}

/* FOOTER */
.site-footer{background:var(--bg-card);border-top:1px solid var(--border)}
.footer-grid{display:grid;grid-template-columns:1fr;gap:2rem;padding:3rem 0}
.footer-brand p{font-size:.875rem;color:var(--text-muted);line-height:1.7;margin:1rem 0}
.footer-realmlist{font-size:.75rem;color:hsla(220,10%,55%,.6)}
.footer-realmlist span{color:var(--gold);font-family:monospace}
.footer-col h4{font-family:'Cinzel',serif;font-size:1.125rem;margin-bottom:1rem}
.footer-col ul{display:flex;flex-direction:column;gap:.5rem}
.footer-col a{font-size:.875rem;color:var(--text-muted);transition:color .3s}
.footer-col a:hover{color:var(--gold)}
.footer-bottom{border-top:1px solid var(--border);padding:1.5rem 0}
.footer-bottom-inner{display:flex;flex-direction:column;align-items:center;gap:1rem;text-align:center}
.footer-copyright{font-size:.75rem;color:hsla(220,10%,55%,.6)}
.footer-disclaimer{font-size:.75rem;color:hsla(220,10%,55%,.5);max-width:40rem}

/* SINGLE POST */
.single-hero{position:relative;min-height:40vh;display:flex;align-items:flex-end;overflow:hidden;background:var(--bg-surface)}
.single-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center}
.single-hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,transparent 0%,var(--bg) 100%)}
.single-hero-content{position:relative;z-index:2;padding:2rem 0;width:100%}
.single-content{max-width:48rem;margin:0 auto;padding:3rem 1rem}
.single-meta{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem;flex-wrap:wrap}
.single-meta span{font-size:.875rem;color:var(--text-muted);display:flex;align-items:center;gap:.25rem}
.single-content h1{font-size:clamp(1.75rem,4vw,2.5rem);margin-bottom:1.5rem}
.entry-content{font-size:1.0625rem;line-height:1.8}
.entry-content p{margin-bottom:1.25rem}
.entry-content h2{font-size:1.5rem;margin:2rem 0 1rem}
.entry-content h3{font-size:1.25rem;margin:1.5rem 0 .75rem}
.entry-content a{color:var(--gold);text-decoration:underline}
.entry-content a:hover{color:var(--gold-light)}
.entry-content ul,.entry-content ol{padding-left:1.5rem;margin-bottom:1.25rem}
.entry-content ul{list-style:disc}
.entry-content ol{list-style:decimal}
.entry-content li{margin-bottom:.5rem}
.entry-content img{border-radius:var(--radius);margin:1.5rem 0}
.entry-content blockquote{border-left:4px solid var(--gold);padding-left:1rem;font-style:italic;margin:1.5rem 0;color:var(--text-muted)}
.entry-content code{background:var(--bg-surface);padding:.15rem .4rem;border-radius:3px;font-size:.875rem}
.entry-content pre{background:var(--bg-surface);padding:1rem;border-radius:var(--radius);overflow-x:auto;margin-bottom:1.25rem}
.post-nav{display:flex;justify-content:space-between;gap:1rem;margin-top:3rem;padding-top:2rem;border-top:1px solid var(--border)}
.post-nav a{color:var(--gold);font-size:.875rem;font-weight:500}
.post-nav a:hover{color:var(--gold-light)}

/* PAGINATION */
.pagination{display:flex;justify-content:center;gap:.5rem;margin-top:3rem}
.pagination a,.pagination span{padding:.5rem 1rem;border:1px solid var(--border);border-radius:var(--radius);font-size:.875rem;transition:all .3s}
.pagination a:hover{border-color:var(--gold);color:var(--gold)}
.pagination .current{background:var(--gold);color:var(--bg);border-color:var(--gold)}

/* PAGE */
.page-content{max-width:48rem;margin:0 auto;padding:8rem 1rem 4rem;min-height:60vh}
.page-content h1{font-size:2rem;margin-bottom:2rem}

/* ANIMATIONS */
@keyframes fadeInUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@keyframes float{0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(-10px)}}
.fade-in{animation:fadeInUp .6s ease-out forwards;opacity:0}
.stagger-1{animation-delay:.1s}
.stagger-2{animation-delay:.2s}
.stagger-3{animation-delay:.3s}
.stagger-4{animation-delay:.4s}
.stagger-5{animation-delay:.5s}
.stagger-6{animation-delay:.6s}

/* RESPONSIVE */
@media(min-width:640px){.hero-buttons{flex-direction:row}.news-grid{grid-template-columns:repeat(2,1fr)}.community-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.container{padding:0 1rem}.header-inner{height:5rem}.main-nav{display:flex}.header-right{display:flex}.mobile-toggle{display:none}.mobile-menu{display:none!important}.site-logo-text{font-size:1.5rem}.news-grid{grid-template-columns:repeat(3,1fr)}.footer-grid{grid-template-columns:1.5fr 1fr 1fr 1fr}.footer-bottom-inner{flex-direction:row;justify-content:space-between;text-align:left}}

