/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*\
   HackYa_17 — Sidebar / Comments Panel
\*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/


/*────────────────────────────────────────────────────*\
   Panel container — visual overrides only
   Positioning/visibility/animation controlled by
   header.css and perspective.css
\*────────────────────────────────────────────────────*/

.top-nav-hidden,
.top-nav-hidden.scroll-down,
.top-nav-hidden.scroll-up,
.top-nav-hidden.scroll-up.hide,
.top-nav-hidden.tilt.scroll-up,
.top-nav-hidden.hide {
    background: #fff !important;
    color: #333 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}


/*────────────────────────────────────────────────────*\
   Panel inner content
\*────────────────────────────────────────────────────*/

.panel-inner {
    padding: 3.5em 1.2em 1.5em;
}

.panel-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.05em;
    margin: 0 0 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}


/*────────────────────────────────────────────────────*\
   Comment list
\*────────────────────────────────────────────────────*/

.panel-comments {
    list-style: none;
    margin: 0;
    padding: 0;
}

.panel-comment-item {
    display: flex;
    gap: 0.7em;
    align-items: flex-start;
    padding: 0.75em 0;
    border-bottom: 1px solid rgb(0 0 0 / 20%);
}

.panel-comment-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
}

.panel-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.panel-comment-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}

.panel-comment-author {
    font-size: 1em;
    font-weight: 700;
    color: #333;
}

a.panel-comment-excerpt {
    color: #333;
    font-size: 1em;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

a.panel-comment-excerpt:hover { color: #000; }

a.panel-comment-post {
    color: #1a73e8;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

a.panel-comment-post:hover { color: #0d47a1; }

.panel-comment-time {
    font-size: 0.85em;
    color: rgba(0,0,0,0.45);
}

.panel-no-comments {
    color: rgba(0,0,0,0.4);
    font-size: 0.95em;
    text-align: center;
    padding: 2em 0;
}


/*────────────────────────────────────────────────────*\
   Tabs Widget
\*────────────────────────────────────────────────────*/

#tabs { position: relative; }

.hackya-tabs-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    gap: 2px;
}

.hackya-tabs-nav li { flex: 1; }

.hackya-tabs-nav__link {
    display: block;
    padding: 0.55em 0.5em;
    text-align: center;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(0,0,0,0.4);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    cursor: pointer;
}

.hackya-tabs-nav__link:hover,
.hackya-tabs-nav__link.is-active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

.tab-container { display: none; padding: 0.75em 0; }
.tab-container.is-active { display: block; }

#tabs.no-js .tab-container { display: block; }
#tabs:not(.no-js) .tab-container:first-of-type { display: none; }

.hackya-tab { list-style: none; margin: 0; padding: 0; }

.hackya-tab li {
    padding: 0.5em 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 0.6em;
}

.tab-item-thumbnail {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 4px;
}

.tab-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tab-item-inner { flex: 1; min-width: 0; }

.tab-item-title {
    margin: 0 0 0.2em;
    font-size: 1em;
    line-height: 1.3;
}

.tab-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.tab-item-title a:hover { color: #1a73e8; }

.tab-item-category,
.tab-item-date {
    margin: 0;
    font-size: 0.85em;
    color: rgba(0,0,0,0.4);
}

.tab-item-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
}

.tab-item-name { font-size: 1em; color: #333; }
.tab-item-comment { font-size: 0.9em; color: rgba(0,0,0,0.65); }
.tab-item-comment a { color: inherit; text-decoration: none; }

/* Tag cloud */
#tab-tags { padding: 0.5em 0; }
#tab-tags li { border: none; padding: 0; }
#tab-tags a {
    display: inline-block;
    padding: 0.2em 0.6em;
    margin: 0.2em;
    font-size: 0.9em;
    border-radius: 3px;
    background: rgba(26,115,232,0.1);
    color: #1a73e8;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
#tab-tags a:hover { background: rgba(26,115,232,0.25); color: #0d47a1; }

@media (min-width: 1200px) {
    .top-nav-hidden {
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden;
        transition: margin-top 0.4s cubic-bezier(0.17, 0.04, 0.03, 0.94) !important;
    }

   
}
