/* ==========================================================
   1. BASE & UTILITY STYLES
   ========================================================== */
body {  
    font-family: 'Inter', sans-serif;  
}

/* Utility to invert dark logos for dark backgrounds */
.logo-invert-white {
    filter: invert(100%) brightness(100%);
}

/* Header enhancement when scrolled (controlled by dynamic.js) */
.scrolled-header {
    border-bottom: 1px solid rgba(126, 34, 206, 0.3); /* Subtle indigo border */
}

/* ==========================================================
   2. COMMENT FORM STYLES (Overrides for Dark Mode)
   ========================================================== */

/* Targets form fields (textarea, input[type="text"], etc.) */
.post-content .comment-form textarea,
.post-content .comment-form input[type="text"],
.post-content .comment-form input[type="email"],
.post-content .comment-form input[type="url"] {
    background-color: #1f2937; /* A dark gray (gray-800) */
    color: #f3f4f6;             /* A light gray (gray-100) for the text */
    border: 1px solid #4b5563;  /* A medium-gray border (gray-600) */
    border-radius: 0.375rem;    /* 'rounded-md' in Tailwind */
    padding: 0.5rem 0.75rem;    /* Add some padding */
    width: 100%;                /* Make them full-width */
}
.post-content .comment-form ::placeholder {
    color: #6b7280; /* gray-500 */
}
.post-content .logged-in-as a {
    color: #60a5fa; /* blue-400 */
    text-decoration: underline;
}

/* ==========================================================
   3. DYNAMIC & ANIMATION STYLES (Controlled by JavaScript)
   ========================================================== */

/* Initial state for fade-in/slide-up animation (.js-scroll-animate) */
.js-scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    /* Transition applied to both opacity and transform */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
/* Override for the metric counters which are animated by JS */
.js-counter {
    /* Ensures numbers align properly during counting */
    font-variant-numeric: tabular-nums; 
}

/* ==========================================================
   4. GDPR COOKIE CONSENT BANNER STYLES
   ========================================================== */

#cookieConsentBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(31, 41, 55, 0.95); /* bg-gray-800 with opacity */
    color: #d1d5db; /* text-gray-300 */
    padding: 1.5rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}
#cookieConsentBanner.hidden {
    opacity: 0;
    pointer-events: none;
}
#cookieConsentBanner p {
    margin-bottom: 0;
    text-align: center;
    font-size: 0.875rem; /* text-sm */
}
#cookieConsentBanner a {
    color: #60a5fa; /* blue-400 */
    text-decoration: underline;
}
#cookieConsentBanner button {
    background-color: #2563eb; /* bg-blue-600 */
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem; /* rounded-md */
    font-weight: 600; /* font-semibold */
    cursor: pointer;
    transition: background-color 0.2s ease;
}
#cookieConsentBanner button:hover {
    background-color: #3b82f6; /* bg-blue-500 */
}
@media (min-width: 768px) {
    #cookieConsentBanner {
        flex-direction: row;
        justify-content: space-between;
    }
    #cookieConsentBanner p {
        text-align: left;
    }
}

/* ADD THIS BLOCK TO YOUR STYLESHEET (e.g., style.css or <style> in header.php) */
@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%); /* Scroll 50% of the container width */
    }
}

.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
    /* Use a high-contrast background to frame the logos */
    background-color: #1f2937; /* gray-800 */
    border-top: 1px solid #374151; /* gray-700 */
    border-bottom: 1px solid #374151;
}

.ticker-container {
    /* Critical: Duplicates the content to ensure seamless loop */
    display: inline-block;
    animation: scroll-left 40s linear infinite; /* Adjust 40s for speed */
    padding-left: 100%;
}

.ticker-container:hover {
    animation-play-state: paused; /* Pause animation on hover */
}
