/*
Theme Name:   GymBase Child
Theme URI: https://1.envato.market/gymbase-responsive-gym-fitness-wordpress-theme
Description:  GymBase Child Theme
Author: QuanticaLabs
Author URI: https://1.envato.market/quanticalabs
Template:     gymbase
Version:      1.1
Text Domain:  gymbase
*/

/* ===== PREMIUM HOVER — FOGHER STYLE ===== */

/* Year header */
.archive-year {
    position: relative;
    padding: 6px 4px;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
}

.archive-year::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: rgba(0,0,0,0.35);
    transition: width 0.45s cubic-bezier(.4,0,.2,1);
}

.archive-year:hover {
    transform: translateX(4px);
    opacity: 0.85;
}

.archive-year:hover::after {
    width: 100%;
}

/* Arrow icon */
.archive-year span {
    display: inline-block;
    transform: translateY(-1px);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1),
                opacity 0.35s ease;
    opacity: 0.6;
}

.archive-year:hover span {
    transform: translate(2px, -1px);
    opacity: 1;
}

/* Active state */
.archive-year.active {
    opacity: 1;
}

.archive-year.active::after {
    width: 100%;
}

/* Months items */
.archive-months li {
    position: relative;
    padding-left: 10px;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1),
                opacity 0.3s ease;
}

.archive-months li::before {
    content: "—";
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

.archive-months li:hover {
    transform: translateX(6px);
    opacity: 0.85;
}

.archive-months li:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.archive-months {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease;
}

.archive-months.open {
    max-height: 500px;
}

/* ===== TAG CLOUD — DARK STUDIO EDITION ===== */

.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding-top: 6px;
}

/* Capsule */
.tagcloud a {
    position: relative;
    padding: 7px 14px;
    font-size: 12px !important;
    line-height: 1;
    border-radius: 999px;
    text-decoration: none;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);

    transition:
        transform .35s cubic-bezier(.4,0,.2,1),
        opacity .35s ease,
        box-shadow .35s ease,
        background .35s ease;
}

/* Dim others on hover */
.tagcloud:hover a {
    opacity: .35;
}

/* Hover focus */
.tagcloud a:hover {
    opacity: 1 !important;
    transform: translateY(-2px);
    background: rgba(255,255,255,.12);
    box-shadow:
        0 6px 18px rgba(0,0,0,.35),
        0 0 0 1px rgba(255,255,255,.35);
}

/* Underline glow */
.tagcloud a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0),
        rgba(255,255,255,.8),
        rgba(255,255,255,0)
    );
    opacity: 0;
    transition: opacity .4s ease;
}

.tagcloud a:hover::after {
    opacity: 1;
}

.tagcloud.collapsed {
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

/* Dark fade bottom */
.tagcloud.collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46px;
    background: linear-gradient(
        to bottom,
        rgba(20,20,20,0),
        rgba(20,20,20,.95)
    );
}

/* ===== TAG COUNT TOOLTIP — DARK ===== */

.tagcloud a {
    position: relative;
}

/* Tooltip */
.tagcloud a[data-count]::before {
    content: attr(data-count) " статей";
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;

    background: rgba(0,0,0,.85);
    color: rgba(255,255,255,.95);
    border-radius: 6px;

    opacity: 0;
    pointer-events: none;

    transition:
        opacity .3s ease,
        transform .3s cubic-bezier(.4,0,.2,1);
}

/* Tooltip arrow */
.tagcloud a[data-count]::after {
    content: "";
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    border: 5px solid transparent;
    border-top-color: rgba(0,0,0,.85);

    opacity: 0;
    pointer-events: none;
    transition:
        opacity .3s ease,
        transform .3s cubic-bezier(.4,0,.2,1);
}

/* Show on hover */
.tagcloud a:hover::before,
.tagcloud a:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* Поточний тег */
.tagcloud a.current-post-tag {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    font-weight: 600;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    transition: all .35s cubic-bezier(.4,0,.2,1);
}

/* Hover + current */
.tagcloud a.current-post-tag:hover {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}
