﻿.index-no-results {
    display: none; /* ascuns implicit */
    text-align: center;
    margin-top: 1rem;
}

    .index-no-results.show {
        display: block; /* afișează când trebuie */
    }


.wrapper {
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-wrapper {
    z-index: 999;
    top: 0;
    left: 0;
    background-color: transparent;
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 30px;
    justify-content: center;
    align-items: start;
    padding: 20px 20px;
}

/* Sub 1700px → 2 carduri */
@media (max-width: 1700px) {
    .card-wrapper {
        grid-template-columns: repeat(2, auto);
    }
}

/* Sub 1100px → 1 card */
@media (max-width: 1100px) {
    .card-wrapper {
        grid-template-columns: 1fr;
    }
}

.card {
    --font-color: #323232;
    --bg-color: white;
    width: 500px;
    height: auto;
    margin: 25px;
    border-radius: 20px;
    background: var(--bg-color);
    box-shadow: -9px 9px 12px #5a5a5a, 4px -4px 8px #918e8e;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .card:hover {
        transform: scale(1.02);
        box-shadow: -6px 6px 15px #5a5a5a, 3px -3px 10px #918e8e;
    }

.card__img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    background-color: #1f2937;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 12px;
}

.card__title-overlay {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
}

.card__descr-wrapper {
    padding: 15px;
    display: grid;
}

.card__descr {
    color: var(--font-color);
    font-size: 14px;
    line-height: 1.5;
}

.card__links {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-self: flex-end;
}

    .card__links .link {
        color: var(--font-color);
        font-weight: 600;
        font-size: 15px;
        text-decoration: none;
    }

        .card__links .link:hover {
            text-decoration: underline;
        }
/* Split generic container (folosit în img și descr-wrapper) */
.split-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
    /* Coloana stânga/dreapta */
    .split-row .left {
        flex: 3;
    }

    .split-row .right {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }
/* Menține titlul alb */
.card__title-overlay {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
}
/* Spațiu suplimentar pentru descr */
.card__descr-wrapper {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* Folosit pentru secțiunea de jos */
.full-width {
    width: 100%;
}

.det-button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    --primary-color: #1f2937;
    --secondary-color: #fff;
    --hover-color: #111;
    --arrow-width: 10px;
    --arrow-stroke: 2px;
    box-sizing: border-box;
    border: 0;
    border-radius: 50px;
    color: var(--secondary-color);
    padding: 1em 1.8em;
    background: var(--primary-color);
    display: flex;
    transition: 0.2s background;
    align-items: center;
    gap: 0.6em;
    font-weight: bold;
    cursor: pointer;
}

    .det-button .arrow-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .det-button .arrow {
        margin-top: 1px;
        width: var(--arrow-width);
        background: var(--primary-color);
        height: var(--arrow-stroke);
        position: relative;
        transition: 0.2s;
    }

        .det-button .arrow::before {
            content: "";
            box-sizing: border-box;
            position: absolute;
            border: solid var(--secondary-color);
            border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
            display: inline-block;
            top: -3px;
            right: 3px;
            transition: 0.2s;
            padding: 3px;
            transform: rotate(-45deg);
        }

    .det-button:hover {
        background-color: var(--hover-color);
    }

        .det-button:hover .arrow {
            background: var(--secondary-color);
        }

            .det-button:hover .arrow:before {
                right: 0;
            }


    /*STYLE PENTRU RESPONSIVE PE MOBILE*/
    @media (max-width: 768px) {
        .card-wrapper {
            grid-template-columns: 1fr;
            /* o singură coloană */
            padding: 15px;
            gap: 20px;
        }

        .card {
            width: 100%;
            margin: 0 auto;
            margin-bottom: 15px;
        }

        .card__img {
            height: auto;
            padding: 10px;
        }

        .card__title-overlay {
            font-size: 16px;
        }

        .card__descr-wrapper {
            padding: 10px;
            gap: 6px;
        }

        .card__descr {
            font-size: 13px;
        }

        .card__links {
            flex-direction: column;
            align-items: flex-start;
            gap: 5px;
        }

            .card__links .link {
                font-size: 14px;
            }

        .split-row {
            flex-direction: column;
            align-items: flex-start;
            gap: 6px;
        }

            .split-row .right {
                justify-content: flex-start;
                width: 100%;
            }

        .event-button, .det-button {
            font-size: 14px;
            padding: 0.6em 1.2em;
            border-radius: 15px;
        }

        .button .arrow {
            width: 8px;
            height: 2px;
        }

            .button .arrow:before {
                padding: 2px;
            }
    }

    /*style mutat din index.cshtml in .css pentru securitate */
    .search-box {
        width: 100% !important;
        max-width: 500px !important;
        padding: 5px !important;
        margin: 20px auto !important;
        display: block !important;
    }

    .fade-card {
        transition: opacity 0.3s ease, transform 0.3s ease;
        opacity: 1;
        transform: scale(1);
        display: block;
    }

        .fade-card.fade-out {
            opacity: 0;
            transform: scale(0.95);
        }

        .fade-card.hidden {
            display: none;
        }

    #noResults {
        color: #777;
        font-size: 18px;
        transition: opacity 0.3s ease;
    }

    .label-search {
        color: #545454 !important;
    }