﻿/*index.css*/
/*---------------Domov---*/
.hero,
.projects-preview,
.blog-preview,
.disclaimer {
    text-align: center;
    margin: 4rem 0 2rem 0;
}

.home-hero-container {}

.lead {}

.home-projects-container {}
.home-blog-container {}
.home-disclaimer-container {
}

.container {}

.home-hero-container h1 {
    font-size: clamp(2rem, 7vw, 2.5rem);
}
.home-hero-container p {
    max-width: 75ch;
    display: inline-block;
    text-align: center;
    margin-top: .2rem;
}

.hero-dev-lang {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

    .hero-dev-lang img {
        display: flex;
        width: 50%;
        min-width: 38%;
        height: auto;
        filter: grayscale(1);  
        opacity: 0.2;
        transition: all .3s;
    }

        .hero-dev-lang img:nth-child(3) {
            width: 38%;
            height: auto;
        }

        .hero-dev-lang img:hover {
            display: inline-block;
            cursor: pointer;
            opacity: 1;
            transform: scale(1.2);
            filter: grayscale(0);
        }

.tooltip {
    position: relative;
    display: inline-block;
}

    .tooltip .tooltiptext {
        visibility: hidden;
        width: max-content;
        color: var(--text-color-primary);
        font-weight: 700;
        text-align: center;
        border: 1px solid var(--text-color-primary);
        border-radius: 6px;
        padding: .2rem 1rem;
        position: absolute;
        z-index: 1;
        bottom: 115%;
        left: 70%;
        margin-left: -60px;
        font-size: clamp(.6rem, 1.9vw, 1rem);
        opacity: 0;
        transition: opacity 1s ease-in-out;
        cursor: pointer;
    }

    .tooltip:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
        cursor: pointer;
    }

/*Footer*/
.footer {
    background-color: var(--bg-color);
    color: var(--text-color);
    text-align: center;
    padding: .5rem;
    border-top: 1px solid var(--bg-color1);
    box-shadow: 2px 2px 10px 5px var(--box-shadow);
    z-index: 999;
    flex: none;
    font-weight: 600;
    font-size: 1rem;
    margin-top: auto; /* kľúčové */
    flex-shrink: 0;
    padding-bottom: max(.5rem, env(safe-area-inset-bottom));
}

    .footer span.footer-span {
        color: var(--text-color);
    }

    .footer .footer-a {
        margin-left: 1rem;
        color: var(--text-color);
    }
/*.footer .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}*/


/* Cookie banner (minimal) */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: .9rem 1rem;
    z-index: 9999;
    border: 1px solid var(--border-color);
    background: var(--bg-color1);
    color: var(--text-color);
    box-shadow: 0 -4px 12px rgba(0,0,0,.15);
    width: fit-content;
    max-width: 75ch;
    /*width: clamp(20rem, 60vw, 60rem);*/
    margin: 0 auto;
}
    /* Nech hidden skutočne schová banner aj s vlastným CSS */
    .cookie-banner[hidden] {
        display: none !important;
    }

.layout-btn-cookie {
    margin: 1rem;
    padding: .3rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    cursor: pointer;
}

    .layout-btn-cookie:hover {
        background-color: var(--bg-color1);
        color: var(--text-color);
    }

.cookie-text {
    line-height: 1.4
}

.footer-links {
    display: block ;
    margin-top: .5rem;
}

.cookie-link {
    display: inline-block;
    text-decoration: none;
    color: var(--text-color);
    text-wrap: nowrap;
    padding: .2rem;
    font-weight: 400;
}
.cookie-link:hover {
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    gap: .5rem
}

.btn-cookie {
    border: 0;
    padding: .5rem .9rem;
    border-radius: .5rem;
    cursor: pointer;
    min-width: 6rem;
    background-color: var(--text-color-secondary);
    color: var(--text-color-invert);
    font-size: clamp(1rem, 2vw, 1.1rem)
}

    .btn-cookie:hover {
        border: 0;
        padding: .5rem .9rem;
        border-radius: .5rem;
        cursor: pointer;
        min-width: 6rem;
        background-color: var(--text-color-secondary-hover);
    }

.btn-cookie-primary {
}

.btn-cookie-secondary {
}



.cookie-banner, .cookie-banner * {
    pointer-events: auto;
}
/*Legal.cshtml*/
.legal-cookies {
    font-size: clamp(.7rem, 2vw, 1.2rem);
    padding-inline: 1rem;
    padding-block: 0 2rem;
}
.legal-table-container {
    overflow-x: auto;
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: clamp(.95rem, 1.2vw, 1rem);
}

    .legal-table th, .legal-table td {
        border: 1px solid var(--border-color);
        padding: .6rem .7rem;
        text-align: left;
        vertical-align: top;
    }

    .legal-table thead th {
        font-weight: 600;
    }

    .legal-table tbody tr:nth-child(odd) {
        background: var(--bg-color2);
    }

.legal-note {
    font-size: .95em;
    opacity: .85;
    margin-top: .5rem;
}



@media screen and (max-width: 1200px) {
    .projects-public-index-card {
        width: 48rem;
    }

    .projects-public-index-card-info {
        width: 60%;
    }

        .projects-public-index-card-info p {
            width: 100%;
        }
}

@media screen and (max-width: 992px) {
    .detail-header {
        padding: 10rem 2rem 2rem 2rem;
    }
}

@media screen and (max-width: 756px) {
    div.content {
        /*max-width: 90%;*/
        margin: 5rem auto 2rem auto;
        padding-inline: 1rem;
    }

    .contact-page-section,
    .login-page-section {
        max-width: 95vw;
    }

    .detail-header {
        padding: 8rem 2rem 2rem 2rem;
    }

        .detail-header p {
            font-size: 0.9rem;
            margin: 0.5rem 0 0 0;
        }

        .detail-header h6 {
            margin: 0.5rem 0 0 0;
        }
}

@media screen and (max-width: 400px) {

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-banner {
        margin-inline: .5rem;
    }
}


@media screen and (max-width: 350px) {

    .image-delete-btn {
        top: -6rem;
        left: 7.3rem;
    }
}
