/**
 * Cookie Consent Banner - CSS
 * GDPR uyumlu çerez bildirimi stilleri
 * 
 * @package ViFragman_Theme
 * @version 1.0.0
 */

/* Base Styles */
.cookie-consent-banner {
    position: fixed;
    z-index: 999999;
    background: var(--cookie-bg-color, #2c3e50);
    color: var(--cookie-text-color, #ffffff);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.3);
    animation: slideIn 0.5s ease-out;
}

/* Bottom Banner */
.cookie-consent-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 0;
}

.cookie-consent-bottom .cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-consent-bottom .cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-bottom .cookie-consent-message {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    min-width: 300px;
}

.cookie-consent-bottom .cookie-consent-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Right Popup */
.cookie-consent-right {
    bottom: 20px;
    right: 20px;
    max-width: 380px;
    border-radius: 12px;
    padding: 25px;
}

.cookie-consent-right .cookie-consent-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-consent-right .cookie-consent-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-consent-right .cookie-consent-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Left Popup */
.cookie-consent-left {
    bottom: 20px;
    left: 20px;
    max-width: 380px;
    border-radius: 12px;
    padding: 25px;
}

.cookie-consent-left .cookie-consent-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-consent-left .cookie-consent-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-consent-left .cookie-consent-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Center Popup */
.cookie-consent-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.cookie-consent-center .cookie-consent-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.cookie-consent-center .cookie-consent-message {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
}

.cookie-consent-center .cookie-consent-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Buttons */
.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.cookie-accept {
    background: var(--cookie-accept-bg, #27ae60);
    color: #ffffff;
}

.cookie-accept:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.cookie-reject {
    background: var(--cookie-reject-bg, #e74c3c);
    color: #ffffff;
}

.cookie-reject:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.cookie-policy-link {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: var(--cookie-text-color, #ffffff);
    border: 2px solid var(--cookie-text-color, #ffffff);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.cookie-policy-link:hover {
    background: var(--cookie-text-color, #ffffff);
    color: var(--cookie-bg-color, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-consent-right,
.cookie-consent-left {
    animation: fadeSlideUp 0.5s ease-out;
}

.cookie-consent-center {
    animation: fadeScale 0.4s ease-out;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Fade out animation */
.cookie-consent-banner.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

/* Dark Mode Support */
.dark-mode .cookie-consent-banner {
    box-shadow: 0 -2px 20px rgba(0,0,0,0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-bottom .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cookie-consent-bottom .cookie-consent-message {
        min-width: auto;
        text-align: center;
    }
    
    .cookie-consent-bottom .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-consent-bottom .cookie-btn {
        width: 100%;
    }
    
    .cookie-consent-right,
    .cookie-consent-left,
    .cookie-consent-center {
        left: 10px;
        right: 10px;
        max-width: none;
        padding: 20px;
    }
    
    .cookie-consent-right,
    .cookie-consent-left {
        bottom: 10px;
    }
    
    .cookie-consent-center {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0 10px;
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        font-size: 13px;
    }
    
    .cookie-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .cookie-consent-right,
    .cookie-consent-left,
    .cookie-consent-center {
        padding: 15px;
    }
}