/**
 * Cookie Consent Styles for 4 Dash Records
 * Custom styling for cookieconsent v3
 * Base styles are loaded from vendor-cookieconsent.css
 */

/* Custom theme matching 4 Dash Records design */
:root {
    --cc-bg: #fff;
    --cc-text: #1a1a1a;
    --cc-btn-primary-bg: linear-gradient(135deg, #ff6b6b, #ffa726);
    --cc-btn-primary-text: #fff;
    --cc-btn-primary-hover-bg: linear-gradient(135deg, #ff5252, #ff9800);
    --cc-btn-secondary-bg: transparent;
    --cc-btn-secondary-text: #666;
    --cc-btn-secondary-hover-bg: rgba(0, 0, 0, 0.05);
    --cc-toggle-bg-off: #d1d5db;
    --cc-toggle-bg-on: #ff6b6b;
    --cc-toggle-bg-readonly: #9ca3af;
    --cc-cookie-category-block-bg: #f8f9fa;
    --cc-cookie-category-block-bg-hover: #f0f0f0;
    --cc-separator-border-color: rgba(0, 0, 0, 0.1);
    --cc-overlay-bg: rgba(0, 0, 0, 0.75);
    --cc-webkit-scrollbar-bg: #f8f9fa;
    --cc-webkit-scrollbar-thumb: #cbd5e1;
}

/* Consent Modal (initial popup) */
#cc-main .cm {
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#cc-main .cm__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--cc-text);
    margin-bottom: 1rem;
}

#cc-main .cm__desc {
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Primary button with gradient */
#cc-main .cm__btn.cm__btn--primary {
    background: var(--cc-btn-primary-bg);
    border: none;
    border-radius: 50px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

#cc-main .cm__btn.cm__btn--primary:hover {
    background: var(--cc-btn-primary-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Secondary button */
#cc-main .cm__btn.cm__btn--secondary {
    background: var(--cc-btn-secondary-bg);
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    color: var(--cc-btn-secondary-text);
    transition: all 0.3s ease;
}

#cc-main .cm__btn.cm__btn--secondary:hover {
    background: var(--cc-btn-secondary-hover-bg);
    border-color: #d1d5db;
}

/* Settings button */
#cc-main button.cm__btn--settings {
    color: #666;
    text-decoration: underline;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Settings Modal */
#s-bns,
#s-bl {
    border-radius: 20px;
}

#s-ttl {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Cookie category blocks */
.c-bl {
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.c-bl:hover {
    background: var(--cc-cookie-category-block-bg-hover);
}

.c-bl__title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Toggle switches */
.c-tgl {
    transition: all 0.3s ease;
}

/* Links */
.cc-link {
    color: #ff6b6b;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cc-link:hover {
    color: #ff5252;
}

/* Cookie table */
#s-c-bn table {
    border-radius: 8px;
    overflow: hidden;
}

#s-c-bn thead {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
}

/* Mobile optimization */
@media (max-width: 768px) {
    #cc-main .cm {
        max-width: calc(100% - 2rem);
        margin: 1rem;
        border-radius: 16px;
    }
    
    #cc-main .cm__title {
        font-size: 1.25rem;
    }
    
    #cc-main .cm__btns {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    #cc-main .cm__btn {
        width: 100%;
    }
    
    /* Settings modal fullscreen on mobile */
    #s-bns {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

/* Smooth animations */
#cc-main.cc--anim .cm,
#s-bns {
    animation: cc-slideUp 0.4s ease;
}

@keyframes cc-slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer cookie settings button styling */
.cookie-settings-link {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    text-decoration: none;
}

.cookie-settings-link:hover {
    color: white;
    text-decoration: underline;
}
