/* =============================================
   EASYWAY - LAYOUT.CSS
   VERZIA: 12.0.0 (ZJEDNOTENÁ MEDZERA PRE VŠETKY STRÁNKY)
   ============================================= */

:root {
    --header-height: 80px;
    --header-height-mobile: 60px;
}

/* =============================================
   HLAVNÝ OBSAH - JEDNOTNÁ MEDZERA (PODĽA FAQ)
   ============================================= */
.main-content {
    max-width: 1300px;
    margin: calc(var(--header-height, 80px) + 30px) auto 45px;
    padding: 0 30px;
    flex: 1;
    width: 100%;
    transition: margin-top 0.3s ease;
}

/* Mobilná verzia */
@media (max-width: 900px) {
    .main-content {
        margin: calc(var(--header-height-mobile, 60px) + 20px) auto 30px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin: calc(var(--header-height-mobile, 60px) + 15px) auto 25px;
        padding: 0 15px;
    }
}

@media (max-width: 600px) {
    .main-content {
        margin: calc(var(--header-height-mobile, 60px) + 15px) auto 20px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .main-content {
        margin: calc(var(--header-height-mobile, 60px) + 10px) auto 15px;
        padding: 0 10px;
    }
}

/* =============================================
   CONTAINER HEADER - ŽIADNY MARGIN-TOP
   ============================================= */
.container-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: clamp(30px, 5vw, 50px) clamp(20px, 4vw, 40px);
    border-bottom: 3px solid var(--primary-light);
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: clamp(140px, 25vh, 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
    margin-bottom: clamp(25px, 5vw, 40px);
    border-radius: 0 0 var(--radius) var(--radius);
}

.container-header-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.container-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: clamp(0.75rem, 3vw, 1.25rem);
    line-height: 1.2;
    color: white;
    word-break: break-word;
}

.welcome-message {
    font-size: clamp(0.875rem, 3vw, 1.125rem);
    opacity: 0.95;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.welcome-highlight {
    color: white;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* =============================================
   DASHBOARD KONTAJNER
   ============================================= */
.dashboard-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 2px solid var(--border-light);
    width: 100%;
}

/* =============================================
   RESPONZÍVNE ŠTÝLY PRE MAIN CONTENT
   ============================================= */
@media (max-width: 1400px) {
    .main-content {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .main-content {
        max-width: 1100px;
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        max-width: 100%;
    }
    .container-header {
        padding: 30px 20px;
        min-height: 160px;
    }
    .container-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .container-header {
        padding: 25px 15px;
        min-height: 140px;
    }
    .container-title {
        font-size: 1.5rem;
    }
    .welcome-message {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container-header {
        padding: 20px 12px;
        min-height: 120px;
    }
    .container-title {
        font-size: 1.3rem;
    }
    .welcome-message {
        font-size: 0.8rem;
    }
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    margin-top: auto;
    padding: 20px 0;
    position: relative;
    border-top: 3px solid var(--primary-light);
    width: 100%;
    z-index: 100;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 40px;
    width: 100%;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.75rem, 2.5vw, 0.95rem);
    line-height: 1.5;
    text-align: center;
    flex: 1;
}

.copyright-text strong {
    color: white;
    font-weight: 700;
}

.copyright-subtext {
    display: block;
    font-size: clamp(0.688rem, 2vw, 0.85rem);
    color: rgba(255, 255, 255, 0.7);
    margin-top: 3px;
    font-style: italic;
}

.back-to-top-btn {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border: none;
    color: white;
    width: clamp(32px, 6vw, 40px);
    height: clamp(32px, 6vw, 40px);
    border-radius: 50%;
    cursor: pointer;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    transition: var(--transition);
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(26, 43, 110, 0.4);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(26, 43, 110, 0.6);
}

/* Responzívne štýly pre footer */
@media (max-width: 900px) {
    .site-footer {
        padding: 18px 0;
    }
    .footer-container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .back-to-top-btn {
        order: -1;
        margin-bottom: 5px;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 15px 0;
    }
    .footer-container {
        padding: 0 15px;
    }
    .copyright-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    .copyright-subtext {
        font-size: 0.688rem;
    }
}

@media (max-width: 480px) {
    .copyright-text {
        font-size: 0.688rem;
    }
    .back-to-top-btn {
        width: 28px;
        height: 28px;
    }
    .back-to-top-btn i {
        font-size: 12px;
    }
}

/* =============================================
   TLAČ
   ============================================= */
@media print {
    .site-header,
    #header-container,
    .site-footer,
    #footer-container,
    .user-info-box,
    .back-to-top-btn,
    .moja-zona-btn,
    .logout-btn,
    .logout-indicator,
    .security-badge {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    .main-content {
        margin: 20px auto !important;
        padding: 20px !important;
    }
    .container-header {
        background: white !important;
        color: black;
        padding: 20px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .container-title {
        color: black;
    }
    .dashboard-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* =============================================
   ZNÍŽENÁ POHYBLIVOSŤ
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    .main-content,
    .container-header,
    .back-to-top-btn {
        transition: none !important;
    }
    .back-to-top-btn:hover {
        transform: none !important;
    }
}
