/**
 * ConsentApproval.css
 * KVKK ve diğer onay gerektiren düzenlemeler için onay kutusu stil dosyası
 *
 * @version 1.0.0
 * @license MIT
 */

/* Overlay - Arkaplan karartma */
.consent-approval-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.consent-approval-overlay.ca-show {
    opacity: 1;
}

/* Modal - Açılır pencere */
.consent-approval-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.consent-approval-modal.ca-show {
    opacity: 1;
}

/* Banner - Alt çubuk */
.consent-approval-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.consent-approval-banner.ca-show {
    opacity: 1;
}

/* Ana konteyner */
.consent-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 25px;
    position: relative;
}

/* Kapatma butonu */
.consent-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
    line-height: 1;
}

.consent-close:hover {
    color: #333;
}

/* Başlık alanı */
.consent-header {
    text-align: center;
    margin-bottom: 20px;
}

.consent-header h2 {
    color: #333;
    font-size: 22px;
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* İçerik alanı */
.consent-content {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.consent-content p {
    margin-bottom: 15px;
}

/* Linkler */
.consent-links {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.consent-links a {
    display: inline-block;
    color: #2196F3;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.consent-links a:hover {
    text-decoration: underline;
    color: #0b7dda;
}

/* Onay kutusu */
.consent-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #2196F3;
}

.consent-checkbox input {
    margin-right: 10px;
    margin-top: 3px;
    transform: scale(1.2);
}

.consent-checkbox label {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

/* Butonlar */
.consent-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consent-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.consent-btn.accept {
    background-color: #4CAF50;
    color: white;
}

.consent-btn.accept:hover {
    background-color: #45a049;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.consent-btn.accept:disabled {
    background-color: #a5d6a7;
    cursor: not-allowed;
    box-shadow: none;
}

.consent-btn.decline {
    background-color: #f44336;
    color: white;
    margin-right: 10px;
}

.consent-btn.decline:hover {
    background-color: #d32f2f;
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

.consent-btn.details {
    background-color: #2196F3;
    color: white;
}

.consent-btn.details:hover {
    background-color: #0b7dda;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .consent-container {
        padding: 20px;
    }

    .consent-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .consent-btn {
        width: 100%;
        margin-bottom: 8px;
    }

    .consent-btn.decline {
        margin-right: 0;
    }

    .consent-header h2 {
        font-size: 18px;
    }

    .consent-checkbox label {
        font-size: 13px;
    }
}

/* Child-modal overlay */
.consent-child-overlay {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s;
}
.consent-child-overlay.ca-show {
    opacity: 1;
}

/* Child-modal itself */
.consent-child-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 90%; max-width: 800px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s;
}
.consent-child-modal.ca-show {
    opacity: 1;
}

/* Header & close */
.consent-child-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}
.consent-child-header h3 {
    margin: 0;
    font-size: 18px;
}
.consent-child-close {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}
.consent-child-content {
    padding: 0;
}
