/* Legal Consent Modal Styles */
.legal-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.4s ease-out;
}

.legal-consent-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(102, 126, 234, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    max-width: 650px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: thin;
    scrollbar-color: #667eea rgba(102, 126, 234, 0.1);
}

.legal-consent-modal-content::-webkit-scrollbar {
    width: 12px;
}

.legal-consent-modal-content::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
}

.legal-consent-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.legal-consent-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.legal-consent-modal-header {
    padding: 30px 25px;
    border-bottom: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    position: relative;
    text-align: center;
}

.legal-consent-modal-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.legal-consent-modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.legal-consent-modal-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.legal-consent-modal-body {
    padding: 30px 25px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.consent-items {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 15px;
    margin-right: -15px;
    padding-right: 15px;
}

.consent-items::-webkit-scrollbar {
    width: 12px;
}

.consent-items::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    margin: 5px 0;
}

.consent-items::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.consent-items::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Firefox için scrollbar stilleri */
.consent-items {
    scrollbar-width: thin;
    scrollbar-color: #667eea rgba(102, 126, 234, 0.1);
}

.consent-item {
    margin-bottom: 20px;
    padding: 20px;
    border: 2px solid transparent;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.consent-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.consent-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
    background: linear-gradient(145deg, #f8f9ff 0%, #ffffff 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.15),
        0 3px 10px rgba(0, 0, 0, 0.08);
}

.consent-item:hover::before {
    opacity: 1;
}

.consent-item label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    gap: 15px;
}

.consent-item input[type="checkbox"] {
    margin: 0;
    transform: scale(1.4);
    accent-color: #667eea;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.2));
    flex-shrink: 0;
    margin-top: 2px;
}

.consent-item .consent-content-wrapper {
    flex: 1;
    min-width: 0;
}

.consent-item strong {
    color: #2c3e50;
    font-size: 1.3rem;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.consent-item strong:hover {
    color: #667eea;
    transform: translateX(5px);
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.consent-item strong::after {
    content: '👆';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.8rem;
}

.consent-item strong:hover::after {
    opacity: 1;
}

.consent-item small {
    color: #6c757d;
    display: block;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.consent-read-btn {
    margin-top: 12px;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.consent-read-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.consent-read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.consent-read-btn:hover::before {
    left: 100%;
}

.consent-read-btn:active {
    transform: translateY(0);
}

.legal-consent-modal-footer {
    padding: 25px 30px;
    border-top: none;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 0 0 20px 20px;
    position: relative;
}

.btn-block {
    width: 100%;
    display: block;
}

.legal-consent-modal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #667eea 50%, transparent 100%);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 
        0 4px 15px rgba(108, 117, 125, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(108, 117, 125, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 
        0 4px 15px rgba(40, 167, 69, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(40, 167, 69, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: none;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Consent Content Styles */
.consent-content {
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #667eea rgba(102, 126, 234, 0.1);
}

.consent-content::-webkit-scrollbar {
    width: 10px;
}

.consent-content::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 3px;
}

.consent-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.consent-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.consent-content h4 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.consent-content h5 {
    color: #555;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

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

.consent-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.consent-content li {
    margin-bottom: 8px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-consent-modal-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
    }
    
    .legal-consent-modal-header {
        padding: 15px;
    }
    
    .legal-consent-modal-header h2 {
        font-size: 1.3rem;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    .legal-consent-modal-body {
        padding: 15px;
    }
    
    .legal-consent-modal-footer {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .consent-item strong {
        font-size: 1.1rem;
        line-height: 1.4;
        word-wrap: break-word;
        white-space: normal;
        padding: 10px;
    }
    
    .consent-item {
        margin-bottom: 15px;
        padding: 15px;
    }
    
    .consent-items {
        max-height: 300px;
    }
}

/* Animation */
@keyframes modalFadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.consent-item.checked {
    animation: pulse 0.6s ease;
}

/* Loading Spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
