/* KVKK Çerez Popup Stilleri */

/* Popup Overlay */
.kvkk-cookie-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kvkk-cookie-popup-overlay.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

/* Popup Container */
.kvkk-cookie-popup {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: kvkkPopupSlideIn 0.3s ease-out;
}

@keyframes kvkkPopupSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Popup Header */
.kvkk-popup-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kvkk-popup-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333333;
}

.kvkk-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.kvkk-popup-close:hover {
    background-color: #f0f0f0;
}

/* Popup Content */
.kvkk-popup-content {
    padding: 20px 24px;
}

.kvkk-popup-description {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 20px;
}

/* Cookie Categories */
.kvkk-cookie-categories {
    margin-bottom: 24px;
}

.kvkk-category {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.kvkk-category-header {
    padding: 16px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.kvkk-category-header:hover {
    background: #e9ecef;
}

.kvkk-category-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kvkk-category-title {
    font-weight: 600;
    font-size: 14px;
    color: #333333;
    margin: 0;
}

.kvkk-category-required {
    background: #dc3545;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 500;
}

.kvkk-category-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.kvkk-category-toggle.active {
    background: #28a745;
}

.kvkk-category-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.kvkk-category-toggle.active::after {
    transform: translateX(20px);
}

.kvkk-category-details {
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    background: white;
    display: none;
}

.kvkk-category-details.show {
    display: block;
}

.kvkk-category-description {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.kvkk-cookie-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kvkk-cookie-item {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #555555;
}

/* Popup Footer */
.kvkk-popup-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.kvkk-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.kvkk-btn-primary {
    background: #007cba;
    color: white;
}

.kvkk-btn-primary:hover {
    background: #005a87;
}

.kvkk-btn-secondary {
    background: #6c757d;
    color: white;
}

.kvkk-btn-secondary:hover {
    background: #545b62;
}

.kvkk-btn-outline {
    background: transparent;
    color: #007cba;
    border: 1px solid #007cba;
}

.kvkk-btn-outline:hover {
    background: #007cba;
    color: white;
}

.kvkk-btn-success {
    background: #28a745;
    color: white;
}

.kvkk-btn-success:hover {
    background: #1e7e34;
}

/* Compact Banner Mode */
.kvkk-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #007cba;
    z-index: 999999;
    padding: 16px 20px;
    display: none;
    animation: kvkkBannerSlideUp 0.3s ease-out;
}

@keyframes kvkkBannerSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.kvkk-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.kvkk-banner-text {
    flex: 1;
    font-size: 14px;
    color: #555555;
    line-height: 1.4;
    min-width: 300px;
}

.kvkk-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Settings Link */
.kvkk-settings-link {
    color: #007cba;
    text-decoration: underline;
    cursor: pointer;
    font-size: 12px;
}

.kvkk-settings-link:hover {
    color: #005a87;
}

/* Responsive */
@media (max-width: 768px) {
    .kvkk-cookie-popup {
        width: 95%;
        max-height: 90vh;
    }
    
    .kvkk-popup-header {
        padding: 16px 16px 12px;
    }
    
    .kvkk-popup-content {
        padding: 16px;
    }
    
    .kvkk-popup-footer {
        padding: 12px 16px 16px;
        flex-direction: column;
    }
    
    .kvkk-btn {
        width: 100%;
    }
    
    .kvkk-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 16px;
    }
    
    .kvkk-banner-text {
        min-width: auto;
        margin-bottom: 8px;
    }
    
    .kvkk-banner-actions {
        justify-content: center;
        gap: 8px;
    }
    
    .kvkk-cookie-banner {
        padding: 16px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .kvkk-cookie-popup {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .kvkk-popup-header {
        border-bottom-color: #4a5568;
    }
    
    .kvkk-popup-title {
        color: #e2e8f0;
    }
    
    .kvkk-popup-close {
        color: #a0aec0;
    }
    
    .kvkk-popup-close:hover {
        background-color: #4a5568;
    }
    
    .kvkk-popup-description {
        color: #cbd5e0;
    }
    
    .kvkk-category {
        border-color: #4a5568;
    }
    
    .kvkk-category-header {
        background: #4a5568;
    }
    
    .kvkk-category-header:hover {
        background: #2d3748;
    }
    
    .kvkk-category-details {
        background: #2d3748;
        border-top-color: #4a5568;
    }
    
    .kvkk-cookie-item {
        background: #4a5568;
        color: #cbd5e0;
    }
    
    .kvkk-popup-footer {
        border-top-color: #4a5568;
    }
    
    .kvkk-cookie-banner {
        background: #2d3748;
        border-top-color: #007cba;
    }
    
    .kvkk-banner-text {
        color: #cbd5e0;
    }
}

/* Accessibility */
.kvkk-cookie-popup:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.kvkk-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.kvkk-category-toggle:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Animation for loading states */
.kvkk-loading {
    opacity: 0.6;
    pointer-events: none;
}

.kvkk-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: kvkkSpin 1s linear infinite;
    margin-right: 8px;
}

@keyframes kvkkSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 