/* ==========================================================================
   OpenHaft — Footer & Developer Credit
   ========================================================================== */

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--glass-border);
}
.footer-main {
    background: var(--bg-primary);
    padding: 80px 0 4rem;
    color: var(--text-secondary);
}
.footer-main__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
}

/* Footer logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    margin-bottom: 1.25rem;
}
.footer-logo__text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #1A1A1A;
    transition: color var(--transition);
}
.footer-logo:hover .footer-logo__text { color: var(--color-gold); }

.footer-main__desc {
    color: var(--color-gray-500);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Footer social */
.footer-main__social {
    display: flex;
    gap: 0.75rem;
}
.footer-main__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: #6B7280;
    transition: all var(--transition);
}
.footer-main__social-link:hover {
    background: var(--gold-400);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(245, 200, 66, 0.35);
    transform: scale(1.15);
}
.footer-main__social-link:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* Footer columns */
.footer-main__heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-gold);
}
.footer-main__links li {
    margin-bottom: 0.5rem;
}
.footer-main__links li a {
    color: var(--color-gray-500);
    font-size: 0.88rem;
    transition: all var(--transition);
}
.footer-main__links li a:hover {
    color: var(--color-gold);
    padding-left: 4px;
}

/* Footer contact list */
.footer-main__contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-main__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
    color: var(--color-gray-500);
}
.footer-main__contact li svg {
    color: var(--gold-400);
    flex-shrink: 0;
    margin-top: 2px;
}
.footer-main__contact li a {
    color: var(--color-gray-500);
    transition: color var(--transition);
}
.footer-main__contact li a:hover {
    color: var(--color-gold);
}

/* Footer bottom bar */
.footer-bottom {
    background-color: transparent;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-bottom__copy {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin: 0;
}
.footer-bottom__links {
    display: flex;
    align-items: center;
    gap: 0;
}
.footer-bottom__links a {
    color: var(--text-muted);
    font-size: 0.8125rem;
    transition: color var(--transition);
}
.footer-bottom__links a:hover { color: var(--color-gold); }
.footer-bottom__sep {
    margin: 0 0.75rem;
    color: var(--color-gray-700);
    opacity: 0.5;
}

/* === DEVELOPER CREDIT BAR === */
.developer-credit {
    background: #1A1A1A;
    padding: 18px 20px;
    text-align: center;
    border-top: 2px solid #D4A843;
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
}

/* Animated gold gradient line at top */
.developer-credit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4A843, #F4D03F, #D4A843, transparent);
    animation: credit-shine 4s ease-in-out infinite;
}

@keyframes credit-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.developer-credit-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* AI Icon — golden glow pulse */
.developer-credit .ai-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(212, 168, 67, 0.5));
    animation: icon-glow 3s ease-in-out infinite;
}

@keyframes icon-glow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(212, 168, 67, 0.3)); }
    50% { filter: drop-shadow(0 0 10px rgba(212, 168, 67, 0.7)); }
}

/* "Realizacja:" label */
.developer-credit .credit-label {
    color: #9CA3AF;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* "Jakub Prejzner" — the star of the show */
.developer-credit .credit-name {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    position: relative;
    padding-bottom: 2px;
}

/* Gold underline that expands on hover */
.developer-credit .credit-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #D4A843;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.developer-credit .credit-name:hover {
    color: #D4A843;
    text-shadow: 0 0 20px rgba(212, 168, 67, 0.5);
}

.developer-credit .credit-name:hover::after {
    width: 100%;
}

/* "— AI Engineer" in gold */
.developer-credit .credit-role {
    color: #D4A843;
    font-size: 13px;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.3px;
}
