/**
 * Cookie Consent Styles
 * KVKK/GDPR Uyumlu Cookie Yonetim Sistemi
 * MultiSiteManager - Tum siteler icin ortak kullanim
 */

/* ==================== VARIABLES ==================== */
:root {
    --cookie-primary: #1a5f7a;
    --cookie-primary-hover: #134a5e;
    --cookie-secondary: #57837b;
    --cookie-secondary-hover: #456b64;
    --cookie-success: #28a745;
    --cookie-danger: #dc3545;
    --cookie-white: #ffffff;
    --cookie-dark: #212529;
    --cookie-gray: #6c757d;
    --cookie-light: #f8f9fa;
    --cookie-border: #dee2e6;
    --cookie-shadow: rgba(0, 0, 0, 0.15);
    --cookie-radius: 12px;
    --cookie-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --cookie-transition: all 0.3s ease;
    --cookie-z-index: 999999;
}

/* ==================== BANNER ==================== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--cookie-z-index);
    background: linear-gradient(135deg, var(--cookie-dark) 0%, #2c3e50 100%);
    color: var(--cookie-white);
    padding: 0;
    box-shadow: 0 -4px 20px var(--cookie-shadow);
    transform: translateY(100%);
    transition: var(--cookie-transition);
    font-family: var(--cookie-font);
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--cookie-white);
}

.cookie-consent-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==================== BUTTONS ==================== */
.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--cookie-transition);
    white-space: nowrap;
    font-family: var(--cookie-font);
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: var(--cookie-white);
}

.cookie-btn-primary:hover {
    background: linear-gradient(135deg, #00a085 0%, #008f76 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.4);
}

.cookie-btn-secondary {
    background: var(--cookie-secondary);
    color: var(--cookie-white);
}

.cookie-btn-secondary:hover {
    background: var(--cookie-secondary-hover);
    transform: translateY(-2px);
}

.cookie-btn-outline {
    background: transparent;
    color: var(--cookie-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.cookie-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ==================== MODAL ==================== */
.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: calc(var(--cookie-z-index) + 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--cookie-transition);
    font-family: var(--cookie-font);
}

.cookie-consent-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: var(--cookie-white);
    border-radius: var(--cookie-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    transition: var(--cookie-transition);
}

.cookie-consent-modal.show .cookie-modal-content {
    transform: scale(1) translateY(0);
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--cookie-border);
    background: linear-gradient(135deg, var(--cookie-primary) 0%, var(--cookie-secondary) 100%);
    color: var(--cookie-white);
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.cookie-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--cookie-white);
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--cookie-transition);
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal-desc {
    margin: 0 0 25px 0;
    color: var(--cookie-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* ==================== CATEGORIES ==================== */
.cookie-category {
    background: var(--cookie-light);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 15px;
    border: 1px solid var(--cookie-border);
    transition: var(--cookie-transition);
}

.cookie-category:hover {
    border-color: var(--cookie-primary);
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.1);
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h5 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--cookie-dark);
}

.cookie-category-info p {
    margin: 0;
    font-size: 13px;
    color: var(--cookie-gray);
    line-height: 1.5;
}

.cookie-category-toggle {
    flex-shrink: 0;
}

.cookie-always-on {
    display: inline-block;
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: var(--cookie-white);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== TOGGLE SWITCH ==================== */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--cookie-transition);
    border-radius: 28px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: var(--cookie-white);
    transition: var(--cookie-transition);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-switch input:checked + .cookie-slider {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-switch input:focus + .cookie-slider {
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.3);
}

/* ==================== MODAL FOOTER ==================== */
.cookie-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid var(--cookie-border);
    background: var(--cookie-light);
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-modal-footer .cookie-btn-outline {
    color: var(--cookie-gray);
    border-color: var(--cookie-border);
}

.cookie-modal-footer .cookie-btn-outline:hover {
    background: var(--cookie-white);
    border-color: var(--cookie-gray);
    color: var(--cookie-dark);
}

/* ==================== FOOTER LINK ==================== */
.cookie-settings-link {
    cursor: pointer;
    color: inherit;
    text-decoration: underline;
    opacity: 0.7;
    transition: var(--cookie-transition);
}

.cookie-settings-link:hover {
    opacity: 1;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .cookie-consent-container {
        padding: 15px 20px;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .cookie-consent-text {
        min-width: auto;
        text-align: center;
    }

    .cookie-consent-actions {
        justify-content: center;
    }

    .cookie-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .cookie-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }

    .cookie-modal-header {
        padding: 15px 20px;
    }

    .cookie-modal-body {
        padding: 20px;
    }

    .cookie-modal-footer {
        padding: 15px 20px;
        justify-content: stretch;
    }

    .cookie-modal-footer .cookie-btn {
        flex: 1;
    }

    .cookie-category {
        padding: 15px;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-text h4 {
        font-size: 16px;
    }

    .cookie-consent-text p {
        font-size: 13px;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }
}

/* ==================== DARK MODE SUPPORT ==================== */
@media (prefers-color-scheme: dark) {
    .cookie-modal-content {
        background: #1e1e1e;
        color: #e0e0e0;
    }

    .cookie-modal-body {
        background: #1e1e1e;
    }

    .cookie-modal-desc {
        color: #aaa;
    }

    .cookie-category {
        background: #2a2a2a;
        border-color: #444;
    }

    .cookie-category:hover {
        border-color: var(--cookie-primary);
    }

    .cookie-category-info h5 {
        color: #e0e0e0;
    }

    .cookie-category-info p {
        color: #aaa;
    }

    .cookie-modal-footer {
        background: #252525;
        border-color: #444;
    }
}

/* ==================== PRINT ==================== */
@media print {
    .cookie-consent-banner,
    .cookie-consent-modal {
        display: none !important;
    }
}
