/* ============================================
   GoFrag.ru — custom.css
   Все кастомные стили. Подключается ПОСЛЕ theme.9.css
   YOOtheme этот файл не трогает при перекомпиляции.
   ============================================ */

/* ============================================
   SELF-HOSTED ROBOTO (вместо Google Fonts)
   Файлы: /templates/yootheme/fonts/
   ============================================ */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400 700;
    font-stretch: 100%;
    font-display: swap;
    src: url('/templates/yootheme/fonts/roboto-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400 700;
    font-stretch: 100%;
    font-display: swap;
    src: url('/templates/yootheme/fonts/roboto-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400 700;
    font-stretch: 100%;
    font-display: swap;
    src: url('/templates/yootheme/fonts/roboto-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400 700;
    font-stretch: 100%;
    font-display: swap;
    src: url('/templates/yootheme/fonts/roboto-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================
   GENERAL OVERRIDES
   ============================================ */
.krizalys_breadcrumb { margin: 0; }
.tm-header { padding-top: 0; }
em { font-style: normal; }

/* ============================================
   SIDEBAR MENU TAGS (gf-)
   Подход: JS data-visible + gf-hidden
   ============================================ */
.gf-menu-section {
    margin-bottom: 20px;
}
.gf-menu-header {
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.gf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.gf-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 4px;
    color: rgba(255,255,255,.6);
    font-size: 14px;
    text-decoration: none;
    transition: all .15s ease;
}
.gf-tag:hover {
    background: rgba(64, 237, 112, .15);
    border-color: #40ed70;
    color: #40ed70;
}
.gf-tag--hot {
    background: rgba(64, 237, 112, .1);
    border-color: rgba(64, 237, 112, .3);
    color: #40ed70;
}
.gf-tag--hot:hover {
    background: rgba(64, 237, 112, .2);
    border-color: #40ed70;
}
.gf-tag.gf-hidden {
    display: none;
}
.gf-tags.gf-expanded .gf-tag.gf-hidden {
    display: inline-block;
}
.gf-show-more {
    display: inline-block;
    padding: 6px 12px;
    background: transparent;
    border: 1px dashed rgba(64, 237, 112, .4);
    border-radius: 4px;
    color: #40ed70;
    font-size: 14px;
    cursor: pointer;
    transition: all .15s ease;
}
.gf-show-more:hover {
    background: rgba(64, 237, 112, .1);
    border-style: solid;
}
.gf-tags.gf-expanded .gf-show-more {
    display: none;
}
.gf-divider {
    border-top: 1px solid rgba(255,255,255,.06);
    margin: 20px 0;
}

/* ============================================
   ARTICLE TAGS (gfa-)
   Подход: CSS max-height (CLS-safe)
   ============================================ */
.gfa-wrap {
    margin-bottom: 8px;
}
.gfa-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: hidden;
}
.gfa-wrap[data-rows="1"] .gfa-tags { max-height: 34px; }
.gfa-wrap[data-rows="2"] .gfa-tags { max-height: 25px; }
.gfa-wrap[data-rows="3"] .gfa-tags { max-height: 80px; }
.gfa-wrap[data-rows="4"] .gfa-tags { max-height: 160px; }
.gfa-wrap.gfa-expanded .gfa-tags {
    max-height: none !important;
}

/* Сброс Joomla <ul><li> внутри gfa-tags */
.gfa-tags ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: contents;
}
.gfa-tags li {
    margin: 0;
    padding: 0;
}

/* Ссылки-теги (единый вид: материал + страницы тегов) */
.gfa-tags a {
    display: inline-block;
    font-weight: 400;
    line-height: normal;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 4px;
    color: rgba(255,255,255,.65);
    text-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-decoration: none;
    transition: all .15s ease;
}
.gfa-tags a:hover {
    background: rgba(64, 237, 112, .15);
    border-color: #40ed70;
    color: #40ed70;
}

/* Кнопка «+ ещё» в материале */
.gfa-more {
    display: inline-block;
    padding: 0px 9px;
    background: transparent;
    border: 1px dashed rgba(64, 237, 112, .4);
    border-radius: 4px;
    color: #40ed70;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all .15s ease;
}
.gfa-more:hover {
    background: rgba(64, 237, 112, .1);
    border-style: solid;
}
.gfa-wrap.gfa-expanded .gfa-more {
    display: none;
}

/* ============================================
   SIDEBAR BANNERS
   ============================================ */
.gf-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    border: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s, transform .3s;
}
.gf-banner:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}
.gf-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gf-banner-text {
    min-width: 0;
}
.gf-banner-text b {
    display: block;
    font-size: 15px;
    line-height: 1.3;
}
.gf-banner-text span {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 2px;
}
.gf-banner .gf-arrow {
    margin-left: auto;
    font-size: 18px;
    transition: transform .3s;
    flex-shrink: 0;
}
.gf-banner:hover .gf-arrow {
    transform: translateX(4px);
}

/* Telegram */
.gf-tg {
    background: #40ed70;
    border-color: #40ed70;
    box-shadow: 0 4px 20px rgba(64, 237, 112, .35);
}
.gf-tg:hover {
    background: #3b8a3e;
    border-color: #3b8a3e;
    box-shadow: 0 6px 28px rgba(64, 237, 112, .45);
}
.gf-tg .gf-banner-icon {
    background: linear-gradient(135deg, #2AABEE, #1E8AC7);
    box-shadow: 0 3px 12px rgba(42, 171, 238, .3);
}
.gf-tg .gf-banner-text b {
    color: #111;
}
.gf-tg .gf-banner-text span {
    color: rgba(0,0,0,.65);
}

/* Донат */
.gf-donate {
    background: linear-gradient(135deg, #1a2a1a, #0d1f0d);
    border-color: rgba(76,175,80,.2);
}
.gf-donate:hover {
    border-color: rgba(76,175,80,.45);
    box-shadow: 0 0 20px rgba(76,175,80,.1);
}
.gf-donate .gf-banner-text b {
    color: #4CAF50;
}
.gf-donate .gf-banner-text span {
    color: #6a9a6a;
}
.gf-donate .gf-arrow {
    color: #4CAF50;
}
