/* ========================================
   DIAGNOSTIKA DOMOVSKÁ STRÁNKA - CSS
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #002b58;
    --secondary-color: #fd5107;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --transition: 0.3s ease;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 80px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--secondary-color);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.site-main {
    flex: 1;
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--primary-color);
}

/* ========================================
   TILES GRID
   ======================================== */

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.tile-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.tile {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tile:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.tile-icon {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: transform var(--transition);
}

.tile:hover .tile-icon {
    transform: scale(1.1);
}

.tile-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.tile-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background-color: var(--light-gray);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.footer-text {
    color: #666;
    font-size: 14px;
}

.footer-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-link {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--secondary-color);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.back-to-top-btn.show {
    display: flex;
}

.back-to-top-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 8px 0;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .tiles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .tile {
        padding: 20px;
    }

    .tile-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .tile-title {
        font-size: 18px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }

    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 15px 0;
    }

    .logo-text {
        font-size: 20px;
    }

    .page-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .tiles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tile {
        padding: 15px;
    }

    .tile-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .tile-title {
        font-size: 16px;
    }

    .tile-description {
        font-size: 13px;
    }

    .site-footer {
        padding: 20px 0;
    }

    .footer-text {
        font-size: 12px;
    }

    .footer-link {
        font-size: 12px;
    }
}
