:root {
    --bg-main: #0D1117;
    --bg-secondary: #161B22;
    --accent-green: #238636;
    --accent-green-hover: #2EA043;
    --accent-bright-green: #39D353;
    --youtube-red: #FF0000;
    --glitch-cyan: #00ffff;
    --glitch-magenta: #ff00ff;
    --text-light: #fbe418;
    --text-medium: #C9D1D9;
    --text-dark: #8B949E;
    --border-color: #30363D;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --glow-color: rgba(173, 243, 34, 0.5);
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Bangers', cursive;
    --font-title: 'Anton', sans-serif;
}

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

@keyframes pulseShape {
    0%, 100% { transform: scale(0.95); opacity: 0.2; }
    50% { transform: scale(1.05); opacity: 0.4; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 30px var(--glow-color); }
    50% { box-shadow: 0 0 45px var(--glow-color); }
}

@keyframes glitch-main {
    2%, 64% { transform: translate(2px, -2px); }
    4%, 60% { transform: translate(-2px, 2px); }
    62% { transform: skew(5deg); }
}

/* --- Základné štýly --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-medium);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: var(--accent-green);
    border-radius: 50%;
    filter: blur(150px);
    animation: pulseShape 20s infinite ease-in-out alternate;
}
.shape-1 { width: 400px; height: 400px; top: -10%; left: -10%; animation-delay: 0s; }
.shape-2 { width: 500px; height: 500px; bottom: -15%; right: -15%; animation-delay: 5s; }

/* --- Navigácia --- */
.navbar {
    background-color: rgba(22, 27, 34, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
    max-width: 1300px;
    padding: 0 25px;
}
.nav-logo {
    font-family: var(--font-display);
    color: var(--text-light);
    text-decoration: none;
    font-size: 2.2rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--glow-color);
    transition: color 0.3s ease;
}
.nav-logo:hover { color: var(--accent-green-hover); }
.nav-menu { display: flex; align-items: center; list-style: none; }
.nav-item { height: 70px; }
.nav-links {
    color: var(--text-medium);
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0 1.5rem;
    height: 100%;
    transition: color 0.3s ease;
    font-weight: 600;
    position: relative;
}
.nav-links::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    width: 0; height: 3px; background-color: var(--accent-green);
    transition: width 0.3s ease-in-out; margin: auto;
}
.nav-links:hover { color: var(--text-light); }
.nav-links:hover::after { width: 80%; }
.menu-icon { display: none; cursor: pointer; background: none; border: none; padding: 0; }
.bar {
    display: block; width: 25px; height: 3px; margin: 5px auto;
    transition: all 0.3s ease-in-out; background-color: var(--text-light); border-radius: 2px;
}

/* --- Hero Sekcia --- */
.hero-section {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 100px 20px 80px; min-height: calc(100vh - 70px);
}
.hero-content { display: flex; flex-direction: column; align-items: center; max-width: 900px; width: 100%; z-index: 1; }
.hero-avatar {
    width: 180px; height: 180px; border-radius: 50%; object-fit: cover;
    border: 4px solid var(--accent-green); margin-bottom: 25px;
    animation: pulse-glow 4s infinite ease-in-out;
}
h1 {
    font-family: var(--font-title); font-size: clamp(4rem, 15vw, 9rem);
    letter-spacing: 0.05em; line-height: 1; color: var(--text-light);
    position: relative; animation: glitch-main 1s linear infinite; margin-bottom: 10px;
    min-height: 1em; /* Zabraňuje poskakovaniu pri načítaní fontu */
}
.tagline {
    font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--text-medium); margin-bottom: 30px; letter-spacing: 1.5px;
}
.animate-on-load { opacity: 0; animation: fadeIn 0.8s ease-out forwards; }
.hero-avatar.animate-on-load { animation-delay: 0.2s; }
h1.animate-on-load { animation-delay: 0.4s; }
.tagline.animate-on-load { animation-delay: 0.6s; }
.stream-buttons.animate-on-load { animation-delay: 0.8s; }
.social-links-hero.animate-on-load { animation-delay: 1.0s; }

.stream-buttons { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.platform-button {
    display: inline-flex; align-items: center; padding: 12px 25px; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-size: 1.1em; color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.platform-button img { margin-right: 10px; object-fit: contain; }
.youtube-button { background-color: var(--youtube-red); box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3); }
.kick-button { background-color: var(--accent-green); box-shadow: 0 4px 15px var(--glow-color); }
.platform-button:hover, .donate-button:hover { transform: translateY(-3px) scale(1.02); }

.social-links-hero { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.social-chip {
    display: inline-flex; align-items: center; background-color: var(--bg-secondary);
    border: 1px solid var(--border-color); border-radius: 50px; padding: 8px 16px;
    text-decoration: none; transition: background-color 0.3s ease, transform 0.2s ease;
}
.social-chip:hover { background-color: var(--accent-green); transform: translateY(-3px); }
.social-chip img { margin-right: 8px; }
.social-chip span { color: var(--text-light); font-weight: 600; font-size: 0.9rem; }

/* --- Hlavný obsah --- */
.main-content { padding: 80px 25px; max-width: 1200px; margin: 0 auto; }
.content-section {
    background-color: var(--bg-secondary); border: 1px solid var(--border-color); padding: 50px;
    margin-bottom: 60px; border-radius: 16px; box-shadow: 0 10px 30px var(--shadow-color);
    opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.content-section.visible { opacity: 1; transform: translateY(0); }
h2 {
    font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 3.8rem);
    color: var(--text-light); text-align: center; margin-bottom: 45px; letter-spacing: 2px;
}
h2::after {
    content: ''; display: block; width: 80px; height: 4px;
    background: var(--accent-green); margin: 20px auto 0; border-radius: 2px;
}
p { font-size: 1.1rem; margin-bottom: 20px; }
.text-link { color: var(--accent-green-hover); font-weight: 600; text-decoration: none; transition: color 0.3s ease; }
.text-link:hover { color: var(--text-light); }
.donate-options { display: flex; justify-content: center; gap: 20px; margin-top: 40px; flex-wrap: wrap; }
.donate-button {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 15px 35px; text-decoration: none; font-weight: 700;
    border-radius: 50px; font-size: 1.2rem; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.donate-button .icon { margin-right: 10px; font-size: 1.2em; }
.primary-donate-btn {
    background-color: var(--accent-green); color: white;
    box-shadow: 0 4px 20px var(--glow-color);
}
.primary-donate-btn:hover { background-color: var(--accent-green-hover); box-shadow: 0 6px 25px var(--glow-color); }
.email-contact, .crypto-section p { max-width: 700px; margin-left: auto; margin-right: auto; text-align: center; }
.email-contact { margin-top: 30px; }
.input-group { display: flex; width: 100%; max-width: 450px; margin: 0 auto; }
.input-group input {
    flex-grow: 1; min-width: 0; /* Dôležité pre flexbox a zalamovanie */
    padding: 12px 15px; border: 1px solid var(--border-color);
    background-color: var(--bg-main); color: var(--text-medium);
    font-family: monospace; font-size: 0.95rem; border-radius: 8px 0 0 8px;
    outline: none; transition: border-color 0.3s ease; overflow-wrap: break-word; word-break: break-all;
}
.input-group input:focus { border-color: var(--accent-green); }
.copy-btn {
    flex-shrink: 0; background-color: var(--accent-green); color: white; border: none;
    padding: 12px 20px; border-radius: 0 8px 8px 0; cursor: pointer; font-weight: 600;
    transition: background-color 0.3s ease;
}
.copy-btn:hover { background-color: var(--accent-green-hover); }
.copy-btn.copied { background-color: #28a745; }

/* --- Krypto Sekcia (OPTIMALIZOVANÁ) --- */
.crypto-grid {
    display: grid;
    /* Zmenšený minmax pre lepšiu kompatibilitu s úzkymi obrazovkami */
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.crypto-card {
    background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 16px;
    padding: 25px; display: flex; flex-direction: column; align-items: center;
    box-shadow: 0 8px 25px var(--shadow-color);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.crypto-card:hover { transform: translateY(-5px); border-color: var(--accent-green); box-shadow: 0 12px 35px var(--glow-color); }
.crypto-title {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin-bottom: 20px; width: 100%;
}
.crypto-logo { width: 32px; height: 32px; flex-shrink: 0; }
.crypto-title span {
    font-size: 1.25rem; font-weight: 600; color: var(--text-light);
    /* Zabezpečí správne zalamovanie textu, ak by bol pridlý */
    word-break: break-word;
    text-align: center;
}

/* --- Footer --- */
.footer-section {
    background-color: var(--bg-secondary); text-align: center;
    padding: 30px 25px; margin-top: 40px; border-top: 1px solid var(--border-color);
    font-size: 0.9em; color: var(--text-dark);
}

/* --- Media Queries (Responzivita) --- */
@media (max-width: 768px) {
    .nav-menu {
        display: none; flex-direction: column; width: 100%;
        position: absolute; top: 70px; left: -100%;
        background-color: var(--bg-secondary); border-top: 1px solid var(--border-color);
        transition: left 0.3s ease-in-out;
    }
    .nav-menu.active { display: flex; left: 0; }
    .nav-item { width: 100%; height: auto; }
    .nav-links { padding: 20px; width: 100%; justify-content: center; }
    .nav-links:hover::after { width: 30%; }
    .menu-icon { display: block; position: absolute; top: 50%; right: 25px; transform: translateY(-50%); }
    .menu-icon.active .bar-1 { transform: translateY(8px) rotate(45deg); }
    .menu-icon.active .bar-2 { opacity: 0; }
    .menu-icon.active .bar-3 { transform: translateY(-8px) rotate(-45deg); }
    .hero-section { padding: 80px 15px 60px; }
    .hero-avatar { width: 150px; height: 150px; }
    p { font-size: 1rem; }
    .crypto-grid { grid-template-columns: 1fr; } /* Zaistí jeden stĺpec na mobiloch */
}

@media (max-width: 480px) {
    .content-section { padding: 30px 20px; }
    .hero-avatar { width: 120px; height: 120px; }
    .stream-buttons { flex-direction: column; gap: 15px; align-items: stretch; }
    .platform-button, .donate-button { justify-content: center; }
    .donate-options { flex-direction: column; align-items: stretch; }
    .crypto-title span { font-size: 1.1rem; } /* Zmenší font názvu krypta na najmenších mobiloch */
}

/* --- Prístupnosť --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .shape, h1 { animation: none !important; }
    .content-section { opacity: 1; transform: none; }
}