/*
Theme Name: Fitrankingi Child
Theme URI: https://fitrankingi.pl/
Description: Child theme dla Fitrankingi.pl bazujący na Kadence. Zawiera shortcode [aff-link] dla afiliacji oraz CSS overrides brand.
Author: Kamil Wesołowski
Author URI: https://fitrankingi.pl/o-nas/
Template: kadence
Version: 0.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fitrankingi-child
*/

/* Brand palette overrides (default fitness — do walidacji z designerem) */
:root {
    --global-palette1: #16A34A;        /* primary — zielony */
    --global-palette2: #064E3B;        /* primary-dark — głęboki granat-zielony */
    --global-palette-highlight: #16A34A;
    --global-palette-highlight-alt: #064E3B;
    --global-palette-highlight-alt2: #16A34A;
}

/* aff-link button styling — żeby placeholdery wyglądały jak CTA */
.aff-link-cta {
    display: inline-block;
    padding: 12px 24px;
    background: var(--global-palette1, #16A34A);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
}

.aff-link-cta:hover,
.aff-link-cta:focus {
    background: var(--global-palette2, #064E3B);
    color: #fff !important;
    text-decoration: none !important;
}

/* aff-link inline (gdy w paragrafie, nie jako button) */
.aff-link-inline {
    color: var(--global-palette2, #064E3B);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.aff-link-inline:hover,
.aff-link-inline:focus {
    color: var(--global-palette1, #16A34A);
}

/* Author box — Kamil */
.author-box-kamil {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
    background: #f9fafb;
    font-size: 0.95em;
    line-height: 1.6;
}

.author-box-kamil em {
    font-style: italic;
    color: #374151;
}

/* ===== Footer (ciemny, lewo-align, override Kadence default) ===== */

/* Ciemne tło całej sekcji footera (Kadence default = białe) */
.site-footer {
    background: #0b1620;
    color: #d1d5db;
}

/* Footer-html w Kadence ma środkujący wrap — neutralizujemy */
.site-footer .footer-html,
.site-footer .footer-html-inner {
    text-align: left;
    width: 100%;
}

.site-footer .site-container {
    padding-left: 20px;
    padding-right: 20px;
}

/* Reset paragrafu wewnętrznego dla wpautop, gdy WP opakuje treść w <p> */
.site-footer .footer-html p:empty {
    display: none;
}

.fr-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 32px 0 24px;
    font-size: 0.92em;
    line-height: 1.5;
    color: #d1d5db;
}

.fr-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-weight: 500;
}

.fr-footer__nav a {
    color: #fff;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.fr-footer__nav a:hover,
.fr-footer__nav a:focus {
    color: #4ade80;
    border-bottom-color: #4ade80;
}

.fr-footer__legal {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    color: #9ca3af;
    font-size: 0.88em;
}

.fr-footer__legal a {
    color: #d1d5db;
    text-decoration: none;
    border-bottom: 1px dotted #6b7280;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.fr-footer__legal a:hover,
.fr-footer__legal a:focus {
    color: #fff;
    border-bottom-color: #fff;
}

/* Separatory — kropka między linkami z osobnym paddingiem */
.fr-footer__sep {
    display: inline-block;
    padding: 0 12px;
    color: #4b5563;
    user-select: none;
    line-height: 1;
}

@media (max-width: 600px) {
    .fr-footer {
        gap: 16px;
        padding: 28px 0 20px;
    }
    .fr-footer__sep {
        padding: 0 8px;
    }
    .fr-footer__legal {
        font-size: 0.85em;
    }
}
