/**
 * cerez-politikasi-popup.css
 * Çerez Politikası Popup - Stil Dosyası
 */

/* ===== Popup Overlay ===== */
.cookie-popup {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 20, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.cookie-popup.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Popup Content ===== */
.cookie-popup-content {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.35s ease;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

.cookie-popup.active .cookie-popup-content {
    transform: translateY(0);
}

/* ===== Header ===== */
.cookie-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    background: #f8f9fb;
    border-bottom: 1px solid #eaecef;
    position: relative;
}

.cookie-popup-header i.fa-cookie {
    font-size: 22px;
    color: #d9822b;
}

.cookie-popup-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #1f2328;
    flex: 1;
}

.cookie-popup-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #6b7280;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.cookie-popup-close:hover {
    background: #eceef1;
    color: #1f2328;
}

/* ===== Body ===== */
.cookie-popup-body {
    padding: 18px 20px;
}

.cookie-popup-text {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

/* ===== Checkbox ===== */
.cookie-popup-checkbox {
    margin-top: 4px;
}

.cookie-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13.5px;
    color: #374151;
    line-height: 1.5;
}

.cookie-checkbox-input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    flex-shrink: 0;
    cursor: pointer;
}

.cookie-checkbox-text {
    user-select: none;
}

.cookie-policy-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.cookie-policy-link:hover {
    text-decoration: underline;
}

/* ===== Footer / Buttons ===== */
.cookie-popup-footer {
    display: flex;
    gap: 10px;
    padding: 0 20px 18px;
}

.cookie-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.cookie-btn:active {
    transform: scale(0.97);
}

.cookie-btn-accept {
    background: #2563eb;
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background: #1d4ed8;
}

.cookie-btn-accept:disabled {
    background: #9db4e8;
    cursor: not-allowed;
    transform: none;
}

.cookie-btn-reject {
    background: #f3f4f6;
    color: #374151;
}

.cookie-btn-reject:hover {
    background: #e5e7eb;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .cookie-popup {
        align-items: flex-end;
        padding: 0;
    }

    .cookie-popup-content {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }

    .cookie-popup-footer {
        flex-direction: column;
    }
}

/* ===== Desktop: Alt Sağ Köşe Konumlandırma (opsiyonel) ===== */
@media (min-width: 768px) {
    .cookie-popup {
        align-items: flex-end;
        justify-content: flex-end;
        background: transparent;
        backdrop-filter: none;
        pointer-events: none;
    }

    .cookie-popup.active {
        pointer-events: auto;
    }

    .cookie-popup-content {
        margin: 0 20px 20px 0;
        max-width: 400px;
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
    }
}