/**
 * GDPR Consent Popup Styles
 * GrantMate Landing Page
 */

/* Consent Popup Overlay */
.consent-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.consent-popup.show {
    opacity: 1;
}

/* Consent Popup Content */
.consent-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.consent-popup.show .consent-content {
    transform: translateY(0);
}

/* Consent Header */
.consent-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.consent-icon {
    width: 40px;
    height: 40px;
    background: #193045;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 18px;
}

.consent-title {
    font-size: 24px;
    font-weight: 600;
    color: #193045;
    margin: 0;
}

/* Consent Text */
.consent-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 25px;
}

.consent-text a {
    color: #ED8131;
    text-decoration: none;
    font-weight: 500;
}

.consent-text a:hover {
    text-decoration: underline;
}

/* Consent Buttons */
.consent-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.consent-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 140px;
}

.consent-btn-primary {
    background: #ED8131;
    color: white;
}

.consent-btn-primary:hover {
    background: #d4721c;
    transform: translateY(-2px);
}

.consent-btn-secondary {
    background: #f5f5f5;
    color: #193045;
    border: 2px solid #e0e0e0;
}

.consent-btn-secondary:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
}

.consent-btn-text {
    background: none;
    color: #666;
    border: none;
    text-decoration: underline;
    min-width: auto;
    padding: 8px 16px;
}

.consent-btn-text:hover {
    color: #193045;
}

/* Cookie Settings Modal */
.cookie-settings {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-settings.show {
    opacity: 1;
}

.cookie-settings-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

/* Cookie Categories */
.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #f9f9f9;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-title {
    font-size: 18px;
    font-weight: 600;
    color: #193045;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle 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: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #ED8131;
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-slider.disabled {
    background-color: #4CAF50;
    cursor: not-allowed;
}

.cookie-category-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Settings Buttons */
.settings-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .consent-content {
        padding: 20px;
        border-radius: 15px 15px 0 0;
    }
    
    .consent-title {
        font-size: 20px;
    }
    
    .consent-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .consent-btn {
        width: 100%;
        min-width: auto;
    }
    
    .cookie-settings-content {
        padding: 25px;
        width: 95%;
    }
    
    .settings-buttons {
        flex-direction: column;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .consent-content {
        padding: 15px;
    }
    
    .consent-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .consent-icon {
        margin-right: 0;
    }
}
