/* Safari - Categories Grid Module */

.safari-categories-grid {
    padding: 60px 0;
    background-color: var(--safari-color-white);
    width: 100%;
    max-width: 100%;
}

.safari-categories-grid-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    width: 100%;
    max-width: 100%;
    min-height: 600px;
    margin: 0;
}

.safari-category-item {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    cursor: pointer;
    filter: grayscale(100%) brightness(0.8);
    transition: filter 0.3s ease;
}

.safari-category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.safari-category-item:hover {
    filter: grayscale(0%) brightness(1.1);
}

.safari-category-item:hover::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%);
}

.safari-categories-grid-container:hover .safari-category-item:not(:hover) {
    filter: grayscale(100%) brightness(0.6);
}

.safari-category-name {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--safari-color-white);
    z-index: 2;
    text-align: center;
    transition: font-size 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.safari-category-item:hover .safari-category-name {
    font-size: 24px;
}

