/* FuelGuard Fluid Cards Widget
   Prefix: fluid-
   ======================================== */

/* ===== DESKTOP: Orijinal Kart Tasarımı ===== */
.fluid-alanlar {
    display: grid;
    gap: 30px;
    padding: 30px 0;
}

.fluid-kart {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fluid-kart:hover {
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.15);
}

.fluid-kart::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #bb0a07;
    transition: height 0.4s ease-out, background-color 0.4s ease;
    z-index: 1;
}

.fluid-kart:hover::before {
    height: 100%;
    background-color: rgba(187, 10, 7, 0.05);
}

.kart-gorsel-kapsayici {
    width: 100%;
    height: auto;
    overflow: visible;
    position: relative;
    z-index: 2;
}

.kart-gorsel {
    width: 100%;
    height: 280px !important;
    object-fit: contain;
    transition: transform 0.5s ease;
    display: block;
}

.fluid-kart:hover .kart-gorsel {
    transform: scale(1.05);
}

.kart-icerik {
    padding: 20px 25px;
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kart-icerik h4 {
    color: #212529;
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 0;
}

.kart-icerik p {
    color: #495057;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
    margin-bottom: 20px;
}

.devamini-oku {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95em;
    color: #bb0a07;
    margin-top: auto;
    transition: transform 0.3s ease;
}

.fluid-kart:hover .devamini-oku {
    transform: translateX(5px);
}

a.fluid-kart:hover {
    text-decoration: none;
}

/* ===== MOBİL: Kompakt 2 Kolon ===== */
@media (max-width: 768px) {
    .fluid-alanlar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
        padding: 10px 0 !important;
    }

    .fluid-kart {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    }

    .kart-gorsel {
        height: 230px !important;
        object-fit: contain;
    }

    .kart-icerik {
        padding: 10px 12px 14px;
    }

    .kart-icerik h4 {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .kart-icerik p {
        font-size: 11px;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .devamini-oku {
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .fluid-alanlar {
        grid-template-columns: 1fr !important;
    }
}

/* --- MODAL STYLES --- */
.fluid-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.fluid-modal-overlay.fluid-modal-active {
    opacity: 1;
}

.fluid-modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.fluid-modal-overlay.fluid-modal-active .fluid-modal-content {
    transform: translateY(0);
}

.fluid-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #e9ecef;
    border: none;
    padding: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #212529;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.fluid-modal-close:hover {
    background: #dee2e6;
    color: #bb0a07;
}

.fluid-modal-body {
    padding: 30px;
    max-height: 85vh;
    overflow-y: auto;
}

.fluid-modal-body h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #212529;
    font-size: 1.5em;
    font-weight: 700;
}

.fluid-modal-text {
    line-height: 1.7;
    color: #495057;
    font-size: 0.95em;
}

.fluid-modal-text p {
    margin-bottom: 15px;
}

.fluid-modal-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .fluid-modal-body {
        padding: 20px;
        padding-bottom: 30px;
        max-height: 80vh;
    }

    .fluid-modal-close {
        top: -10px;
        right: -10px;
        background: #e9ecef;
    }
}