/**
 * Gremaza WPB Addons - Image Card Carousel Styles
 * Author: Marsel Preci
 */

/* ============================================
   Image Card Carousel Styles
   ============================================ */

.gremaza-card-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.gremaza-card-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gremaza-card-carousel-track {
    display: flex;
    gap: var(--card-gap, 20px);
    transition: transform 0.5s ease;
}

/* Card Item */
.gremaza-card-item {
    flex-shrink: 0;
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.gremaza-card-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.gremaza-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Card Image */
.gremaza-card-image-wrap {
    position: relative;
    width: 100%;
    height: 60%;
    overflow: hidden;
}

.gremaza-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gremaza-card-item:hover .gremaza-card-image-wrap img {
    transform: scale(1.1);
}

.gremaza-card-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gremaza-card-no-image::after {
    content: '';
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

/* Card Content */
.gremaza-card-content {
    padding: 20px;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.gremaza-card-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

.gremaza-card-description {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
    color: #666;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Navigation Arrows */
.gremaza-card-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.gremaza-card-carousel-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gremaza-card-carousel-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.gremaza-card-carousel-prev {
    left: 15px;
}

.gremaza-card-carousel-next {
    right: 15px;
}

.gremaza-card-carousel-arrow svg {
    width: 24px;
    height: 24px;
}

/* Default card dimensions */
.gremaza-card-item {
    height: var(--card-height, 400px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .gremaza-card-carousel-arrow {
        width: 42px;
        height: 42px;
    }

    .gremaza-card-carousel-prev {
        left: 10px;
    }

    .gremaza-card-carousel-next {
        right: 10px;
    }

    .gremaza-card-title {
        font-size: 1.1rem;
    }

    .gremaza-card-description {
        font-size: 0.85em;
        -webkit-line-clamp: 2;
    }

    .gremaza-card-content {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .gremaza-card-carousel-wrapper {
        padding: 15px 0;
    }

    .gremaza-card-carousel-arrow {
        width: 38px;
        height: 38px;
    }

    .gremaza-card-carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .gremaza-card-carousel-prev {
        left: 8px;
    }

    .gremaza-card-carousel-next {
        right: 8px;
    }

    .gremaza-card-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .gremaza-card-description {
        font-size: 0.8em;
    }

    .gremaza-card-content {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .gremaza-card-carousel-arrow {
        width: 34px;
        height: 34px;
    }

    .gremaza-card-carousel-arrow svg {
        width: 18px;
        height: 18px;
    }

    .gremaza-card-title {
        font-size: 0.95rem;
    }

    .gremaza-card-description {
        font-size: 0.75em;
        -webkit-line-clamp: 2;
    }
}

/* ============================================
   Logo Carousel Style
   ============================================ */

.gremaza-logo-carousel-style .gremaza-logo-item {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    height: auto;
}

.gremaza-logo-carousel-style .gremaza-logo-item:hover {
    box-shadow: none;
    transform: none;
}

.gremaza-logo-carousel-style .gremaza-logo-item .gremaza-card-image-wrap {
    height: auto;
}

.gremaza-logo-carousel-style .gremaza-logo-item .gremaza-card-image-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.gremaza-logo-carousel-style .gremaza-logo-item:hover .gremaza-card-image-wrap img {
    transform: none;
}

.gremaza-logo-carousel-style .gremaza-card-link {
    display: block;
}
