/**
 * Footer Credit Component Styles
 *
 * Ultra-neutral, portable styling that fits any website.
 * Marketing Maatwerk branded hover effects.
 *
 * @package Office_Imagination
 * @version 1.0.1
 */

/* ========================================
   CSS Custom Properties (easily customizable)
   ======================================== */
:root {
    /* Neutral colors - adapt to any website */
    --footer-credit-bg: transparent;
    --footer-credit-text: #666666;
    --footer-credit-border: rgba(0, 0, 0, 0.1);

    /* Marketing Maatwerk branding for hover */
    --footer-credit-link-hover: #ff6600;  /* Marketing Maatwerk oranje */

    /* Typography - neutral and subtle */
    --footer-credit-font-size: 0.75rem;
    --footer-credit-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ========================================
   Main Footer Credit Container
   ======================================== */
.footer-credit {
    background-color: var(--footer-credit-bg);
    color: var(--footer-credit-text);
    padding: 15px 20px;
    border-top: 1px solid var(--footer-credit-border);
    font-family: var(--footer-credit-font-family);
    font-size: var(--footer-credit-font-size);
    line-height: 1.4;
    width: 100%;

    /* Ensure it's always at the bottom */
    position: relative;
    z-index: 10;
    margin-top: 0;
}

.footer-credit-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

/* ========================================
   Single Line Text
   ======================================== */
.footer-credit-text {
    margin: 0;
    padding: 0;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-credit-year,
.footer-credit-sitename {
    font-weight: 400;
}

.footer-credit-separator {
    margin: 0 8px;
    opacity: 0.4;
    font-weight: 300;
}

/* ========================================
   Developer Link - Marketing Maatwerk Branding
   ======================================== */
.footer-credit-link {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-bottom: 1px;
}

/* Marketing Maatwerk Branded Hover Effects */
.footer-credit-link:hover,
.footer-credit-link:focus {
    color: var(--footer-credit-link-hover);
    text-decoration: none;
    outline: none;
}

/* Subtle underline animation - Marketing Maatwerk style */
.footer-credit-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--footer-credit-link-hover) 0%, #ff8833 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.footer-credit-link:hover::after,
.footer-credit-link:focus::after {
    width: 100%;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet and below - allow text wrap */
@media screen and (max-width: 768px) {
    .footer-credit {
        padding: 12px 15px;
    }

    .footer-credit-text {
        white-space: normal;
        line-height: 1.6;
    }

    .footer-credit-separator {
        display: inline;
    }
}

/* Mobile - stack on multiple lines if needed */
@media screen and (max-width: 480px) {
    .footer-credit {
        padding: 10px 15px;
        font-size: 0.7rem;
    }

    .footer-credit-text {
        line-height: 1.8;
    }
}

/* ========================================
   Accessibility
   ======================================== */

/* Focus visible for keyboard navigation */
.footer-credit-link:focus-visible {
    outline: 2px solid var(--footer-credit-link-hover);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .footer-credit-link,
    .footer-credit-link::after {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .footer-credit {
        border-top: 2px solid rgba(0, 0, 0, 0.3);
    }

    .footer-credit-link {
        text-decoration: underline;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .footer-credit {
        background-color: transparent;
        color: #000000;
        border-top: 1px solid #000000;
        padding: 8px 0;
        font-size: 8pt;
    }

    .footer-credit-link {
        color: #000000;
        text-decoration: none;
    }

    .footer-credit-link::after {
        display: none;
    }

    /* Show URL in print */
    .footer-credit-link::before {
        content: " (" attr(href) ")";
        font-size: 7pt;
    }
}

/* ========================================
   Dark Mode Support (Optional)
   ======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --footer-credit-text: #999999;
        --footer-credit-border: rgba(255, 255, 255, 0.1);
    }
}
