/* ============================================================
 *  Fiyat İsteyiniz - Frontend Stilleri
 * ============================================================ */

/* ---------- Modal ---------- */
.fiyat-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.fiyat-modal.active {
    opacity: 1;
    visibility: visible;
}

.fiyat-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    cursor: pointer;
    backdrop-filter: blur(2px);
}

.fiyat-modal-container {
    position: relative;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(.98);
    transition: transform .3s ease;
    z-index: 1;
}

.fiyat-modal.active .fiyat-modal-container {
    transform: translateY(0) scale(1);
}

.fiyat-modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    border-radius: 10px 10px 0 0;
}

.fiyat-modal-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.fiyat-modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background .2s, color .2s;
}

.fiyat-modal-close:hover {
    color: #000;
    background: #f0f0f0;
}

.fiyat-modal-content {
    padding: 22px;
    position: relative;
    min-height: 180px;
}

.fiyat-modal-loader {
    text-align: center;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: fi-spin 1s linear infinite;
}

@keyframes fi-spin {
    to { transform: rotate(360deg); }
}

.fiyat-modal-error {
    color: #e74c3c;
    padding: 20px;
    text-align: center;
}

/* ---------- Buton ---------- */
.fiyat-isteyiniz-wrapper {
    display: inline-block;
    width: 100%;
    margin: 5px 0;
}

.fiyat-isteyiniz-button {
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    transition: all .3s ease;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
}

.fiyat-isteyiniz-button.style-default {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
}

.fiyat-isteyiniz-button.style-modern {
    padding: 10px 22px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: #fff;
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .15);
}

.fiyat-isteyiniz-button.style-minimal {
    padding: 8px 18px;
    background-color: #1E90FF;
    color: #fff;
    border: none;
    border-radius: 5px;
}

.fiyat-isteyiniz-button:hover {
    opacity: .92;
    transform: translateY(-2px);
}

.fiyat-isteyiniz-button:active {
    transform: translateY(0);
}

/* ---------- Woodmart uyumluluk ---------- */
.woodmart-compatible {
    margin: 0 5px;
}

.woodmart-product-buttons .fiyat-isteyiniz-wrapper {
    display: inline-block;
    width: auto;
}

.woodmart-product-buttons .fiyat-isteyiniz-button {
    padding: 8px 12px;
    font-size: .9em;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .fiyat-modal-container {
        width: 95%;
        max-height: 95vh;
    }
    .fiyat-modal-header,
    .fiyat-modal-content {
        padding: 15px;
    }
    .fiyat-isteyiniz-wrapper {
        margin: 3px 0;
    }
    .woodmart-product-buttons .fiyat-isteyiniz-button {
        padding: 5px 10px;
        font-size: .85em;
    }
}