﻿/* === SSH INDEX === */

.index-container {
    max-width: 1400px;
    margin: 40px auto 0;
    text-align: center;
}

/* === Başlık === */
.index-header h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #0F3F61;
    margin-bottom: 10px;
    letter-spacing: 0.4px;
}

.index-header p {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 60px;
}

.index-searchbar {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.search-combined {
    position: relative;
    display: flex;
    align-items: center;
    width: 500px;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.6px solid rgba(255,255,255,0.5);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15,63,97,0.15);
    padding: 4px 10px;
}

    .search-combined i.bi-search {
        position: absolute;
        left: 18px;
        color: #4da0c0;
        font-size: 18px;
    }

    .search-combined input {
        width: 100%;
        border: none;
        outline: none;
        background: transparent;
        padding: 12px 46px 12px 44px;
        font-size: 15px;
        color: #0F3F61;
        font-weight: 500;
    }

        .search-combined input::placeholder {
            color: #0F3F61aa;
        }

/* Filtre */
.filter-dropdown {
    position: relative;
    margin-left: auto;
}

    .filter-dropdown button {
        background: transparent;
        border: none;
        color: #4da0c0;
        font-size: 20px;
        cursor: pointer;
        padding: 6px 10px;
        border-radius: 10px;
        transition: background 0.2s ease;
    }

        .filter-dropdown button:hover {
            background: rgba(77,160,192,0.1);
        }

.filter-menu {
    position: absolute;
    top: 46px;
    right: 0;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(14px);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(15,63,97,0.15);
    display: none;
    width: 160px;
    z-index: 10;
}

    .filter-menu.active {
        display: block;
    }

    .filter-menu li {
        padding: 10px 16px;
        font-size: 15px;
        color: #0F3F61;
        cursor: pointer;
        transition: background 0.2s ease;
    }

        .filter-menu li:hover {
            background: rgba(77,160,192,0.1);
        }


/* === Grid === */
.index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

@media (min-width: 1200px) {
    .index-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === Box === */
.category-box {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

    .category-box::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.35);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 20px;
        z-index: 0;
    }

    .category-box:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 28px rgba(77, 160, 192, 0.25);
    }

/* === Box === */
.box-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    justify-content: center !important;
    gap: 14px;
}

    .box-content img {
        width: 100%;
        height: 210px;
        object-fit: cover;
        border-radius: 16px;
        margin-bottom: 14px;
        transition: transform 0.5s ease, filter 0.3s ease;
    }

.category-box:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

.box-content h3 {
    font-size: 0.97rem;
    line-height: 1.35;
    color: #0F3F61;
    margin: 6px 2px 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.35em * 2);
}

/* === Button === */
.box-content .btn {
    margin-top: auto;
    padding: 9px 0;
    font-size: 0.9rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

    .box-content .btn:hover {
        background: linear-gradient(135deg, #0056b3 0%, #00408f 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 91, 187, 0.4);
    }

/* === Responsive === */
@media (max-width: 992px) {
    .index-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .index-searchbar {
        flex-direction: column;
        gap: 16px;
    }

        .index-searchbar .search-box,
        .index-searchbar .filter-box {
            width: 100%;
        }
}

@media (max-width: 576px) {
    .index-grid {
        grid-template-columns: 1fr;
    }

    .category-box {
        min-height: 360px;
    }

    .box-content img {
        height: 180px;
    }
}
