:root {
    --kdl-primary: #DD2001;
    --kdl-secondary: #717680;
    --bg-kdl-secondary: rgba(0, 0, 0, 0.02);
}

/* KDL Color Utilities */
.bg-kdl {
    background-color: var(--kdl-primary);
}

.bg-kdl-secondary {
    background-color: var(--bg-kdl-secondary);
}

.kdl-color {
    color: var(--kdl-primary);
}

.kdl-color--secondary {
    color: var(--kdl-secondary) !important;
}

/* KDL Button */
.btn-kdl {
    background-color: var(--kdl-primary);
    color: white !important;
}

.btn-kdl:hover {
    background-color: #c01d03f8 !important;
}

/* KDL Guest Image */
.kdl-guest-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: contain;
    background-color: rgba(255, 51, 0, 0.1);
    box-shadow: 0 4px 12px rgba(221, 32, 1, 0.15);
    display: block;
}

/* KDL Input Variant */
.input--kdl,
textarea.input--kdl {
    --input-accent: var(--input-border-color);
    --input-focus-ring: transparent;
    --input-border-color-focus: var(--input-border-color);
}

/* KDL Notification Input Group */
.input-group--notification {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.input-group--notification .input--kdl {
    flex: 1;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-notification-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: var(--input-padding-y) 14px;
    background-color: #FEE4E2;
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--kdl-primary);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.input-notification-badge:hover {
    background-color: #FCCCC7;
}

.input-notification-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* KDL Scrollable Container */
.kdl-scrollable-viewport {
    overflow-y: auto;
    width: 100%;
    height: 500px;
}

/* KDL Links */
.list-links-kdl a {
    text-decoration: none;
    color: var(--color-text-medium);
    transition: color 0.2s ease;
}

.list-links-kdl a:hover {
    color: var(--kdl-primary) !important;
    text-decoration: none;
}

/* Footer KDL Specific Styles */
.footer-description {
    line-height: 1.6;
    opacity: 0.9;
}

.footer-links-wrapper {
    min-width: 400px;
}

.footer-links-column {
    flex: 1;
    min-width: 150px;
}

.list-links-footer a:hover {
    opacity: 1 !important;
    text-decoration: underline;
}

.footer-newsletter {
    flex: 1;
    min-width: 280px;
}

.footer-newsletter-text {
    opacity: 0.85;
    line-height: 1.5;
}

.footer-input {
    background-color: white;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    flex: 1;
}

.footer-btn-subscribe {
    background-color: var(--color-secondary);
    color: white;
    border-radius: 0 8px 8px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-lg);
}

.footer-copyright {
    opacity: 0.8;
}

.footer-social {
    font-size: 20px;
}

.footer-social a:hover {
    opacity: 1 !important;
}

.footer-branding {
    opacity: 0.7;
}

/* KDL Main Layout - Uses flex utilities from utility.css */
.kdl-main-layout {
    display: flex;
    gap: var(--spacing-lg);
}

.kdl-main-layout .kdl-video-section {
    flex: 1;
}

.kdl-main-layout .kdl-video-section iframe {
    height: 500px;
}

.kdl-main-layout .kdl-sidebar {
    width: 33.333%;
}

@media (max-width: 1024px) {
    .kdl-main-layout .kdl-sidebar {
        width: 35%;
    }
}

@media (max-width: 768px) {
    .kdl-main-layout {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .kdl-main-layout .kdl-video-section {
        flex: 1;
        width: 100%;
    }

    .kdl-main-layout .kdl-video-section iframe {
        height: 200px !important;
    }

    .kdl-main-layout .kdl-sidebar {
        width: 100%;
    }

    .kdl-scrollable-viewport {
        height: 400px !important;
    }

    .kdl-guest-image {
        width: 120px !important;
        height: 120px !important;
    }
}

/* Mobile Responsive - Complements utility.css flex and spacing utilities */
@media (max-width: 768px) {
    footer.bg-kdl.py-xl {
        padding-top: var(--spacing-lg) !important;
        padding-bottom: var(--spacing-lg) !important;
    }

    footer.bg-kdl.px-lg {
        padding-left: var(--spacing-md) !important;
        padding-right: var(--spacing-md) !important;
    }

    .footer-kdl .d-flex.flex-row {
        flex-direction: column;
    }

    .footer-kdl .gap-xxl {
        gap: var(--spacing-lg) !important;
    }

    .footer-section {
        min-width: 100% !important;
    }

    .footer-links-wrapper {
        min-width: 100% !important;
        flex-direction: column;
    }

    .footer-links-column {
        min-width: 100% !important;
    }

    .footer-newsletter {
        min-width: 100% !important;
    }

    .footer-kdl .input-group--notification {
        flex-direction: column;
    }

    .footer-input {
        border-radius: var(--radius-md) !important;
        width: 100%;
    }

    .footer-btn-subscribe {
        border-radius: var(--radius-md) !important;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center !important;
        text-align: center;
    }

    .footer-bottom > * {
        width: 100%;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-kdl .gap-xxl {
        gap: var(--spacing-lg) !important;
    }

    .footer-links-wrapper {
        flex-basis: 100%;
    }
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(247, 247, 247);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: clip-path 0.8s cubic-bezier(0.76, 0, 0.24, 1);
    clip-path: circle(100% at 50% 50%);
}

#preloader img {
    width: 200px;
    transition: opacity 0.5s ease;
    animation: opacityPulse 1.5s ease-in-out infinite;
}

@keyframes opacityPulse {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}

#preloader.loaded {
    clip-path: circle(0% at 50% 50%);
    pointer-events: none;
}

#preloader.loaded img {
    opacity: 0;
}
