/* ================================================================
   Блок интересных фактов — яркий, заметный, GameChronicle
   ================================================================ */

.fact-card {
    position: relative;
    background: linear-gradient(145deg, #1E2128 0%, #23272E 100%);
    border: 1px solid rgba(180, 150, 60, 0.15);
    border-radius: 14px;
    padding: 28px 26px 24px;
    margin: 28px 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 0 0 1px rgba(180, 150, 60, 0.04), 0 4px 20px rgba(0,0,0,0.3);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.fact-card:hover {
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.06), 0 6px 28px rgba(0,0,0,0.35);
}

.fact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #F59E0B 30%, #F59E0B 70%, transparent 100%);
    opacity: 0.6;
}

.fact-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, transparent 50%, rgba(108, 122, 145, 0.05) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.fact-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fact-header i {
    font-size: 1.3rem;
    color: #F59E0B;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.25));
}

.fact-header span {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.fact-divider {
    width: 24px;
    height: 2px;
    background: #F59E0B;
    border-radius: 2px;
    opacity: 0.5;
    margin: 2px 0 4px;
}

.fact-body {
    position: relative;
    min-height: 60px;
}

.fact-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #E8EDF2;
    margin: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.fact-text.is-loading {
    opacity: 0;
    transform: translateY(6px);
}

.fact-text.is-loaded {
    animation: factAppear 0.3s ease forwards;
}

@keyframes factAppear {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.fact-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.fact-source {
    font-size: 0.7rem;
    color: #6C7A8A;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fact-source a {
    color: #8A9BB5;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 0.5px;
}

.fact-source a:hover {
    color: #E8EDF2;
}

.fact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    color: #F59E0B;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    user-select: none;
    white-space: nowrap;
}

.fact-btn i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.fact-btn:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.35);
    color: #FBBF24;
}

.fact-btn:hover i {
    transform: rotate(180deg);
}

.fact-btn:active {
    transform: scale(0.96);
}

.fact-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.fact-btn:disabled i {
    animation: factSpin 0.6s linear infinite;
}

@keyframes factSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* В сайдбаре */
.sidebar-block .fact-card,
.news-sidebar .fact-card {
    padding: 20px 18px 18px;
    margin: 0 0 20px;
}

.sidebar-block .fact-text,
.news-sidebar .fact-text {
    font-size: 0.88rem;
}

@media (max-width: 768px) {
    .fact-card {
        padding: 22px 18px 18px;
        margin: 20px 0;
    }
    .fact-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
