/* Cookie Banner Styles for clubia.it */
.cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
}

.cookie-consent-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: -1;
}

.cookie-consent-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-top: 3px solid #667eea;
    padding: 30px;
    box-shadow: 0 -10px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        padding: 20px;
    }
}

.cookie-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.cookie-close-btn:hover {
    opacity: 1;
}

.cookie-title {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-icon {
    font-size: 28px;
}

@media (max-width: 768px) {
    .cookie-title {
        font-size: 20px;
    }
}

.cookie-text {
    color: #b3b3b3;
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 800px;
}

.cookie-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .cookie-options {
        grid-template-columns: 1fr;
    }
}

.cookie-option {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.cookie-option:hover:not(:has(.disabled)) {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
}

.cookie-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
}

.cookie-checkbox.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.cookie-checkmark {
    width: 22px;
    height: 22px;
    background: #1a1a1a;
    border: 2px solid #667eea;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.cookie-checkbox input:checked ~ .cookie-checkmark {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
}

.cookie-checkbox input:checked ~ .cookie-checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.cookie-checkbox input:disabled ~ .cookie-checkmark {
    background: #667eea;
    opacity: 0.5;
}

.cookie-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cookie-label strong {
    color: #ffffff;
    font-size: 16px;
}

.cookie-label small {
    color: #b3b3b3;
    font-size: 13px;
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cookie-actions {
        flex-direction: column;
    }
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    flex: 1;
    min-width: 150px;
}

@media (max-width: 768px) {
    .cookie-btn {
        width: 100%;
        padding: 14px 24px;
    }
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.cookie-btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.cookie-btn-secondary {
    background: #10b981;
    color: white;
}

.cookie-btn-secondary:hover {
    background: #059669;
    transform: translateY(-2px);
}

.cookie-btn-ghost {
    background: transparent;
    color: #b3b3b3;
    border: 1px solid #333;
}

.cookie-btn-ghost:hover {
    border-color: #667eea;
    color: #ffffff;
    background: rgba(102, 126, 234, 0.1);
}

.cookie-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.cookie-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Footer Link per riaprire le preferenze */
.cookie-preferences-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid #667eea;
    border-radius: 8px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cookie-preferences-link:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* Animazioni */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Accessibilità */
.cookie-consent-banner:focus-visible,
.cookie-btn:focus-visible,
.cookie-checkbox input:focus-visible ~ .cookie-checkmark,
.cookie-link:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}
