/* KF HOTFIX v2.5 — Header + Pages */

/* ==================== HEADER ==================== */
.kf-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(8, 8, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.kf-header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.kf-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.kf-logo-img {
    height: 60px !important;
    width: auto !important;
    max-width: 200px;
    object-fit: contain;
}

.kf-logo-text {
    color: #d4af37;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* MENU */
.kf-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.kf-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kf-menu li {
    list-style: none;
}

.kf-menu a {
    display: inline-block;
    padding: 10px 14px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s;
}

.kf-menu a:hover,
.kf-menu .current-menu-item > a {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
}

/* ACTIONS */
.kf-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.kf-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: #d4af37;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: all 0.3s;
}

.kf-login:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
}

.kf-donate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: linear-gradient(135deg, #d4af37, #f4e5a4);
    color: #08080d;
    border: 0;
    border-radius: 50px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s;
}

.kf-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.45);
}

.kf-dot {
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    animation: kfPulse 2s infinite;
}

@keyframes kfPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

/* USER DROPDOWN — kfu */
.kfu {
    position: relative;
    display: inline-block;
}

.kfu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 5px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 50px;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    transition: all 0.3s;
    outline: none;
}

.kfu-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.45);
}

.kfu-av {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f4e5a4);
    color: #08080d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    overflow: hidden;
}

.kfu-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.kfu-name {
    color: #e2e8f0;
    font-weight: 600;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kfu-arr {
    color: #d4af37;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.kfu.is-open .kfu-arr {
    transform: rotate(180deg);
}

.kfu-pop {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 260px;
    background: #12131a;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kfu.is-open .kfu-pop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.kfu-head {
    padding: 12px 14px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.kfu-head strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.kfu-head small {
    color: #5a6b8a;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kfu-pop > a {
    display: block;
    padding: 11px 14px;
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    background: transparent;
    border: 0;
    margin: 0;
    line-height: 1.4;
}

.kfu-pop > a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
}

.kfu-hr {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 6px 4px;
}

.kfu-logout {
    color: #fca5a5 !important;
}

.kfu-logout:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

/* BURGER */
.kf-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.kf-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #d4af37;
    border-radius: 2px;
    transition: all 0.3s;
}

.kf-burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kf-burger.is-active span:nth-child(2) { opacity: 0; }
.kf-burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==================== PAGE HEAD (breadcrumb + título) ==================== */
.kf-pagehead {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.04), rgba(8, 8, 13, 0.6));
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: 50px 28px 40px;
}

.kf-pagehead-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.kf-bcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #a8b3c7;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.kf-bcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.kf-bcrumb a:hover { opacity: 0.7; }

.kf-bcrumb-sep {
    color: rgba(212, 175, 55, 0.4);
    font-weight: 700;
}

.kf-bcrumb-current {
    color: #cbd5e1;
    font-weight: 600;
}

.kf-eyebrow {
    display: inline-block;
    color: #d4af37;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.kf-pagetitle {
    color: #fff;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 14px;
    letter-spacing: -1px;
}

.kf-pagedesc {
    color: #a8b3c7;
    font-size: 16px;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 0 20px;
}

.kf-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 50px;
    color: #d4af37;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
    margin-top: 10px;
}

.kf-back:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: translateX(-3px);
}

/* ==================== PAGE BODY ==================== */
.kf-pagebody {
    padding: 50px 28px 80px;
}

.kf-pagebody-full {
    padding: 0 !important;
}

.kf-pagebody-full .kf-pagebody-inner {
    max-width: 100% !important;
}

.kf-pagebody-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.kf-pagebody article .entry-content {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.8;
}

.kf-pagebody article .entry-content h2 {
    color: #fff;
    margin: 30px 0 16px;
}

.kf-pagebody article .entry-content a {
    color: #d4af37;
}

/* ==================== ARCHIVE CARDS ==================== */
.kf-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.kf-card {
    background: linear-gradient(135deg, #12131a, #1a1c26);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.kf-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.kf-card-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.kf-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.kf-card:hover .kf-card-thumb img {
    transform: scale(1.05);
}

.kf-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kf-card-date {
    color: #d4af37;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.kf-card-title {
    font-size: 20px;
    margin: 0 0 10px;
    line-height: 1.3;
}

.kf-card-title a {
    color: #fff;
    text-decoration: none;
}

.kf-card-title a:hover {
    color: #d4af37;
}

.kf-card-excerpt {
    color: #a8b3c7;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}

.kf-card-more {
    color: #d4af37;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start;
}

.kf-pagination {
    margin-top: 50px;
    text-align: center;
}

.kf-empty {
    text-align: center;
    color: #a8b3c7;
    padding: 80px 20px;
}

/* ==================== ESCONDER VERSÕES ANTIGAS ==================== */
.kf-user-menu,
.kf-user-trigger,
.kf-user-dropdown,
.kf-user-avatar,
.kf-user-name,
.kf-page-banner,
.kf-breadcrumb,
.kf-back-btn {
    display: none !important;
}

/* ==================== RESPONSIVO ==================== */
@media (max-width: 1024px) {
    .kf-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85%;
        height: 100vh;
        background: #12131a;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 24px 24px;
        transition: right 0.3s;
        z-index: 998;
        overflow-y: auto;
    }
    
    .kf-nav.is-open {
        right: 0;
    }
    
    .kf-menu {
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }
    
    .kf-menu a {
        display: block;
        padding: 14px;
        font-size: 14px;
    }
    
    .kf-burger {
        display: flex;
    }
    
    .kfu-name {
        display: none;
    }
}

@media (max-width: 640px) {
    .kf-header-inner {
        padding: 14px 18px;
        gap: 12px;
    }
    
    .kf-logo-img {
        height: 48px !important;
    }
    
    .kf-login span,
    .kf-donate span:not(.kf-dot) {
        font-size: 11px;
    }
    
    .kf-pagehead {
        padding: 36px 20px 28px;
    }
    
    .kf-pagebody {
        padding: 36px 20px 60px;
    }
}
