/**
 * Cookie Consent Modal Styles
 * Responsive modal overlay for cookie consent
 */

/* Prevent body scrolling when modal is open */
body.jg-cc-modal-open {
    height: 100vh;
    overflow: hidden;
}

/* Overlay - covers entire viewport */
.jg-cc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Modal container */
.jg-cc-modal {
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 30px;
    box-sizing: border-box;
    animation: jg-cc-slide-up 0.3s ease-out;
}

/* Slide up animation */
@keyframes jg-cc-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal content */
.jg-cc-content {
    text-align: center;
}

/* Message text */
.jg-cc-message {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    margin: 0 0 25px 0;
}

/* Button container */
.jg-cc-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Base button styles */
.jg-cc-btn {
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: normal;
    min-width: 138px;
    font-family: inherit;
}

.jg-cc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.jg-cc-btn:active {
    transform: translateY(0);
}

/* Accept button */
.jg-cc-btn-accept {
    background: linear-gradient(to top, #b0063e, #e30813);
    color: #ffffff;
}

.jg-cc-btn-accept:hover {
    background: linear-gradient(to top, #b0063e, #e30813);
}

/* Reject button */
.jg-cc-btn-reject {
    background-color: #6c757d;
    color: #ffffff;
}

.jg-cc-btn-reject:hover {
    background-color: #5a6268;
}

/* Footer */
.jg-cc-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.jg-cc-privacy-link {
    color: #666666;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.jg-cc-privacy-link:hover {
    color: #333333;
    text-decoration: underline;
}

/* Hidden state */
.jg-cc-hidden {
    display: none !important;
}

/* Mobile responsive - Tablet */
@media (max-width: 768px) {
    .jg-cc-modal {
        padding: 25px;
    }
    
    .jg-cc-message {
        font-size: 15px;
    }
}

/* Mobile responsive - Phone */
@media (max-width: 480px) {
    .jg-cc-overlay {
        padding: 15px;
    }
    
    .jg-cc-modal {
        padding: 20px;
    }
    
    .jg-cc-message {
        font-size: 14px;
        margin: 0 0 20px 0;
    }
    
    .jg-cc-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .jg-cc-btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .jg-cc-footer {
        margin-top: 15px;
        padding-top: 12px;
    }
    
    .jg-cc-privacy-link {
        font-size: 13px;
    }
}

/* Accessibility - High contrast mode support */
@media (prefers-contrast: high) {
    .jg-cc-overlay {
        background-color: rgba(0, 0, 0, 0.9);
    }
    
    .jg-cc-modal {
        border: 2px solid #000000;
    }
    
    .jg-cc-btn {
        border: 2px solid currentColor;
    }
}

/* Accessibility - Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .jg-cc-modal {
        animation: none;
    }
    
    .jg-cc-btn {
        transition: none;
    }
    
    .jg-cc-btn:hover {
        transform: none;
    }
}

/* Focus styles for keyboard navigation */
.jg-cc-btn:focus-visible {
    outline: 1px solid #b0063e;
    outline-offset: 2px;
}

/* Print styles - hide modal when printing */
@media print {
    .jg-cc-overlay {
        display: none !important;
    }
}
