/* Çerez Popup Stilleri */
.cookie-popup {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 380px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-popup.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.cookie-popup-content {
    padding: 20px;
}

.cookie-popup-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.cookie-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.cookie-popup-header h3 {
    flex-grow: 1;
    font-size: 18px;
    color: #333;
}

.cookie-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cookie-popup-close:hover {
    color: #333;
}

.cookie-popup p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.cookie-popup a {
    color: #9777fa;
    text-decoration: none;
}

.cookie-popup a:hover {
    text-decoration: underline;
}

.cookie-popup-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


/* Çerez Ayarları Popup Stilleri */
.cookie-settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-settings-popup.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-content {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-settings-header h3 {
    flex-grow: 1;
    font-size: 20px;
    color: #333;
}

.cookie-settings-tabs {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cookie-tabs-header {
    display: flex;
    border-bottom: 1px solid #eee;
}

.cookie-tab-btn {
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
}

.cookie-tab-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #9777fa;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.cookie-tab-btn.active {
    color: #9777fa;
}

.cookie-tab-btn.active:after {
    transform: scaleX(1);
}

.cookie-tabs-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cookie-tab-content {
    display: none;
}

.cookie-tab-content.active {
    display: block;
}

.cookie-option {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-info {
    flex-grow: 1;
}

.cookie-option-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.cookie-option-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-left: 15px;
}

.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: .4s;
    border-radius: 34px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #9777fa;
}

input:focus + .cookie-slider {
    box-shadow: 0 0 1px #9777fa;
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-status {
    display: block;
    font-size: 10px;
    color: #999;
    margin-top: 5px;
    text-align: center;
}

/* İframe Stili */
#cookie-policy-iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.cookie-settings-buttons {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Responsive Tasarım */
@media (max-width: 480px) {
    .cookie-popup {
        width: calc(100% - 40px);
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .cookie-popup-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .cookie-settings-content {
        width: 95%;
        max-height: 95vh;
    }
}