/**
 * Çerez Onay Banner Stilleri - Kompakt Tasarım
 */

/* Ana Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 2px solid var(--theme-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 15px 0;
    display: none;
    font-family: var(--body-font);
}

.cookie-consent-banner.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Banner İçeriği */
.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

/* Banner Sol Taraf */
.cookie-banner-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.cookie-icon {
    font-size: 20px;
    color: var(--theme-color);
    min-width: 24px;
}

.cookie-text {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.cookie-text a {
    color: var(--theme-color);
    text-decoration: none;
    font-weight: 500;
}

.cookie-text a:hover {
    text-decoration: underline;
}

/* Banner Sağ Taraf - Butonlar */
.cookie-banner-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Buton Stilleri */
.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cookie-btn i {
    font-size: 12px;
}

.cookie-btn-accept {
    background: var(--theme-color);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--theme-color2);
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.cookie-btn-decline:hover {
    background: #e9ecef;
    color: #333;
}

.cookie-btn-settings {
    background: transparent;
    color: var(--theme-color);
    border: 1px solid var(--theme-color);
}

.cookie-btn-settings:hover {
    background: var(--theme-color);
    color: white;
}

/* Ayarlar Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.cookie-settings-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-settings-content {
    background: white;
    border-radius: 10px;
    padding: 25px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cookie-settings-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cookie-close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

/* Çerez Kategorileri */
.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cookie-category-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cookie-category-title i {
    font-size: 14px;
    color: var(--theme-color);
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.cookie-toggle 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: 0.3s;
    border-radius: 20px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--theme-color);
}

input:checked + .cookie-slider:before {
    transform: translateX(20px);
}

input:disabled + .cookie-slider {
    background-color: var(--theme-color);
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-category-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Modal Alt Butonlar */
.cookie-settings-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.cookie-settings-actions .cookie-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 16px;
}

/* Footer Ayarlar Linki */
.cookie-settings-link {
    color: var(--theme-color);
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cookie-settings-link:hover {
    text-decoration: underline;
}

.cookie-settings-link i {
    font-size: 12px;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    .cookie-banner-left {
        text-align: center;
    }
    
    .cookie-banner-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .cookie-settings-content {
        margin: 10px;
        padding: 20px;
    }
    
    .cookie-settings-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 12px 0;
    }
    
    .cookie-text {
        font-size: 13px;
    }
    
    .cookie-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
}
