/* =============================================
 * BASE STYLES - ZÁKLADNÉ ŠTÝLY
 * Verzia: 8.11.0 (Plynulý gradient od 10px pod user-info-box po footer)
 * ============================================= */

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

html {
    height: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--body-bg-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    position: relative;
    transition: background 0.3s ease;
}

/* Jemné ozdobné prvky pozadia */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(74, 100, 212, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* =============================================
   🔥 HLAVNÝ KONTAJNER - PEVNÁ FARBA, GRADIENT ZAČÍNA 10px POD USER-INFO-BOX
   ============================================= */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
    /* Pevná farba pre oblasť od vrchu po 10px pod user-info-box */
    background: var(--header-solid-color);
}

/* 🔥 Gradientová vrstva - začína 10px pod spodným okrajom user-info-box */
.page-wrapper::before {
    content: '';
    position: absolute;
    top: var(--gradient-start-y);
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--header-solid-color) 0%, var(--body-bg-gradient) 100%);
    pointer-events: none;
    z-index: 0;
    transition: top 0.2s ease-out;
}

/* Zabezpečenie že obsah je nad pozadím */
.page-wrapper > * {
    position: relative;
    z-index: 1;
}

/* Jemné svetelné prekrytie na vrchu */
.page-wrapper::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Elegantný tieň na spodku */
.page-wrapper .main-content::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(0deg, rgba(13, 26, 77, 0.15), transparent);
    pointer-events: none;
    z-index: 0;
}

/* =============================================
   🔥 TMAVÝ REŽIM - KEĎ JE AKTÍVNY DATA-THEME="DARK"
   ============================================= */
html[data-theme='dark'] .page-wrapper {
    background: #0a0f2a;
}

html[data-theme='dark'] .page-wrapper::before {
    background: linear-gradient(180deg, #0a0f2a 0%, var(--body-bg-gradient-dark) 100%);
}

html[data-theme='dark'] .page-wrapper::after {
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.05), transparent 70%);
}

html[data-theme='dark'] .page-wrapper .main-content::after {
    background: linear-gradient(0deg, rgba(5, 5, 16, 0.3), transparent);
}

/* =============================================
   HLAVNÝ OBSAH – ZABERÁ VŠETOK PRIESTOR
   ============================================= */
.main-content {
    flex: 1 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* =============================================
   FOOTER KONTAJNER – PRILEPENÝ NA SPODOK
   ============================================= */
#footer-container,
.site-footer {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.75rem;
}
h4 {
    font-size: 1.5rem;
}
h5 {
    font-size: 1.25rem;
}
h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

/* Forms */
input,
select,
textarea,
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
