/* ==========================================================================
   AO Pages — stilovi specifični za pojedine stranice
   ========================================================================== */

/* ── Vijesti — lista ── */
.news-archive-header {
    font-size: 13px;
    font-weight: bold;
    color: #7eb8f7;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(126,184,247,0.15);
}
.news-archive-list { list-style: none; margin: 0; padding: 0; }
.news-archive-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid rgba(200,200,210,0.14);
    background: rgba(255,255,255,0.02);
    margin-bottom: 8px;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
}
.news-archive-item:hover {
    background: rgba(126,184,247,0.07);
    border-color: rgba(126,184,247,0.25);
}
.news-archive-title {
    flex: 1;
    font-size: 14px;
    font-weight: bold;
    color: #ddd;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-archive-item:hover .news-archive-title { color: #fff; }
.news-archive-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    font-size: 12px;
    color: #666;
}
.news-archive-meta .meta-author { color: #7eb8f7; min-width: 60px; text-align: right; }
.news-archive-meta .meta-date   { min-width: 80px; text-align: right; }
.news-archive-meta .meta-replies { min-width: 40px; text-align: right; color: #555; }

/* ── Vijesti — pojedinačna vijest ── */
.ao-article-meta-bar {
    padding: 14px 14px 16px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 20px;
}
.ao-article-category {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6366f1;
    display: block;
    margin-bottom: 6px;
}
.ao-article-title {
    font-size: 22px;
    font-weight: 700;
    color: #f0f4ff;
    line-height: 1.3;
    margin: 0 0 10px;
}
.ao-article-meta {
    font-size: 12px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 7px;
}
.ao-article-meta a,
.ao-article-meta a:link,
.ao-article-meta a:visited { color: #6b7fa0; text-decoration: none; font-weight: 600; }
.ao-article-meta a:hover { color: #818cf8; }
.ao-dot { opacity: 0.3; }
.ao-article-body {
    font-size: 14px;
    line-height: 1.75;
    color: #d0dae8;
    margin-bottom: 24px;
    padding: 0 14px;
}
.ao-article-body p { margin: 0 0 12px; }
.ao-article-body b,
.ao-article-body strong { color: #f0f4ff; }
.ao-article-body a,
.ao-article-body a:link,
.ao-article-body a:visited { color: #818cf8; }
.ao-article-body a:hover { color: #a5b4fc; }
.ao-article-body ul,
.ao-article-body ol { padding-left: 20px; margin: 0 0 12px; }
.ao-article-body li { margin-bottom: 4px; }
.ao-article-body img {
    max-width: 340px;
    width: auto;
    height: auto;
    max-height: 280px;
    border-radius: 7px;
    display: inline-block;
    vertical-align: top;
    margin: 4px;
    object-fit: cover;
}
.ao-article-footer {
    padding: 16px 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Recenzije — lista ── */
.rev-section { margin-bottom: 32px; }
.rev-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(126,184,247,0.2);
}
.rev-section-header h2 {
    margin: 0;
    font-size: 15px;
    color: #7eb8f7;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.rev-count {
    background: rgba(126,184,247,0.1);
    border: 1px solid rgba(126,184,247,0.25);
    color: #7eb8f7;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
}
.rev-list { display: flex; flex-direction: column; gap: 2px; }
.rev-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 5px;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
}
.rev-item:hover { background: rgba(51,85,204,0.15); border-color: rgba(126,184,247,0.15); }
.rev-item.sticky { background: rgba(126,184,247,0.06); border-color: rgba(126,184,247,0.12); }
.rev-item.sticky:hover { background: rgba(51,85,204,0.18); border-color: rgba(126,184,247,0.25); }
.rev-sticky-icon { color: #7eb8f7; font-size: 10px; flex-shrink: 0; opacity: 0.7; }
.rev-title {
    flex: 1;
    min-width: 0;
    color: #ddd;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}
.rev-item:hover .rev-title { color: #7eb8f7; }
.rev-item.sticky .rev-title { color: #c8dcf8; }
.rev-author { color: #666; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
.rev-date { color: #555; font-size: 11px; white-space: nowrap; flex-shrink: 0; min-width: 72px; text-align: right; }

/* ── Recenzija — pojedinačna ── */
.recenzija-wrap { max-width: 820px; }
.recenzija-back { margin-bottom: 20px; }
.recenzija-back a {
    color: #7eb8f7;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
    transition: opacity 0.15s;
}
.recenzija-back a:hover { opacity: 1; }
.recenzija-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 2px solid rgba(126,184,247,0.2);
}
.recenzija-header h1 { margin: 0 0 10px; font-size: 22px; color: #e8e8f0; line-height: 1.3; }
.recenzija-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.recenzija-meta .meta-author { display: flex; align-items: center; gap: 6px; color: #aaa; font-size: 13px; }
.recenzija-meta .meta-author strong { color: #7eb8f7; }
.recenzija-meta .meta-date { color: #666; font-size: 12px; }
.recenzija-meta .meta-stats { margin-left: auto; display: flex; gap: 12px; }
.recenzija-meta .meta-stat { color: #666; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.recenzija-body { font-size: 14px; line-height: 1.8; color: #ccc; }
.recenzija-body p { margin: 0 0 14px; }
.recenzija-body img { max-width: 100%; border-radius: 4px; margin: 10px 0; }
.recenzija-body a { color: #7eb8f7; text-decoration: none; }
.recenzija-body a:hover { text-decoration: underline; }
.recenzija-body blockquote {
    border-left: 3px solid rgba(126,184,247,0.4);
    margin: 14px 0;
    padding: 8px 16px;
    color: #aaa;
    background: rgba(255,255,255,0.03);
    border-radius: 0 4px 4px 0;
}
.recenzija-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.recenzija-comments-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(51,85,204,0.2);
    border: 1px solid rgba(51,85,204,0.4);
    color: #7eb8f7;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.recenzija-comments-btn:hover {
    background: rgba(51,85,204,0.35);
    border-color: rgba(126,184,247,0.5);
    color: #fff;
}
.recenzija-comments-count {
    background: rgba(126,184,247,0.15);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: bold;
}

/* ── Projekti — lista ── */
.projects-grid { display: flex; flex-direction: column; gap: 0; margin-bottom: 30px; }
.project-column h3 {
    font-size: 12px;
    color: #7eb8f7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(126,184,247,0.2);
}
.project-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 13px;
}
.project-item a {
    color: #ddd;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.project-item a:hover { color: #7eb8f7; }
.project-item .meta { color: #666; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
.project-item .author { color: #888; font-size: 11px; flex-shrink: 0; }
.section-header { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; }
.section-header h2 { margin: 0; font-size: 16px; }
.section-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: bold; }
.badge-active  { background: rgba(76,175,80,0.2);  color: #4caf50; border: 1px solid #4caf50; }
.badge-done    { background: rgba(51,85,204,0.2);   color: #7eb8f7; border: 1px solid #446; }
.badge-stopped { background: rgba(232,64,64,0.15);  color: #e84040; border: 1px solid #e84040; }
.project-count { color: #888; font-size: 12px; }

/* ── Projekat — pojedinačni ── */
.projekat-wrap { max-width: 820px; }
.projekat-back { margin-bottom: 20px; }
.projekat-back a {
    color: #7eb8f7; font-size: 12px; text-decoration: none;
    display: inline-flex; align-items: center; gap: 5px;
    opacity: 0.8; transition: opacity 0.15s;
}
.projekat-back a:hover { opacity: 1; }
.projekat-header { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 2px solid rgba(126,184,247,0.2); }
.projekat-header h1 { margin: 0 0 10px; font-size: 22px; color: #e8e8f0; line-height: 1.3; }
.projekat-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.projekat-meta .meta-author { display: flex; align-items: center; gap: 6px; color: #aaa; font-size: 13px; }
.projekat-meta .meta-author strong { color: #7eb8f7; }
.projekat-meta .meta-date { color: #666; font-size: 12px; }
.projekat-meta .meta-stats { margin-left: auto; display: flex; gap: 12px; }
.projekat-meta .meta-stat { color: #666; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.projekat-body { font-size: 14px; line-height: 1.8; color: #ccc; }
.projekat-body p { margin: 0 0 14px; }
.projekat-body img { max-width: 100%; border-radius: 4px; margin: 10px 0; }
.projekat-body a { color: #7eb8f7; text-decoration: none; }
.projekat-body a:hover { text-decoration: underline; }
.projekat-body blockquote {
    border-left: 3px solid rgba(126,184,247,0.4);
    margin: 14px 0; padding: 8px 16px; color: #aaa;
    background: rgba(255,255,255,0.03); border-radius: 0 4px 4px 0;
}
.projekat-footer {
    margin-top: 32px; padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex; align-items: center; justify-content: space-between;
}
.projekat-comments-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(51,85,204,0.2); border: 1px solid rgba(51,85,204,0.4);
    color: #7eb8f7; padding: 8px 18px; border-radius: 20px;
    font-size: 13px; text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.projekat-comments-btn:hover {
    background: rgba(51,85,204,0.35);
    border-color: rgba(126,184,247,0.5);
    color: #fff;
}
.projekat-comments-count {
    background: rgba(126,184,247,0.15); border-radius: 10px;
    padding: 1px 7px; font-size: 11px; font-weight: bold;
}

/* ── Pretraga ── */
.pretraga-header { margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid rgba(126,184,247,0.2); }
.pretraga-header h1 { margin: 0 0 8px; font-size: 18px; color: #e8e8f0; }
.pretraga-summary { color: #888; font-size: 13px; }
.pretraga-summary strong { color: #7eb8f7; }
.pretraga-section { margin-bottom: 28px; }
.pretraga-section-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px; padding-bottom: 8px;
    border-bottom: 1px solid rgba(126,184,247,0.15);
}
.pretraga-section-header h2 {
    margin: 0; font-size: 13px; color: #7eb8f7;
    text-transform: uppercase; letter-spacing: 1px;
}
.pretraga-count {
    background: rgba(126,184,247,0.1);
    border: 1px solid rgba(126,184,247,0.25);
    color: #7eb8f7; font-size: 11px; font-weight: bold;
    padding: 2px 8px; border-radius: 10px;
}
.pretraga-list { display: flex; flex-direction: column; gap: 2px; }
.pretraga-item {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px; border-radius: 5px;
    border: 1px solid transparent; text-decoration: none;
    color: #ddd; font-size: 13px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pretraga-item:hover {
    background: rgba(51,85,204,0.15);
    border-color: rgba(126,184,247,0.15);
    color: #7eb8f7;
}
.pretraga-no-results { color: #666; font-size: 13px; padding: 30px 0; text-align: center; }
.pretraga-no-results span { font-size: 28px; display: block; margin-bottom: 10px; }

/* ── Prevodilac — profil ── */
.ao-author-header {
    display: flex; align-items: center; gap: 22px;
    padding: 20px 0 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 18px;
}
.ao-author-avatar {
    flex-shrink: 0; width: 80px; height: 80px;
    border-radius: 50%; overflow: hidden;
    border: 2px solid rgba(99,102,241,0.4);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
    background: #1a2030;
    display: flex; align-items: center; justify-content: center;
}
.ao-author-avatar-img {
    width: 80px; height: 80px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    flex-shrink: 0;
}
.ao-author-initial {
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 700; color: #fff;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    flex-shrink: 0;
}
.ao-author-info { display: flex; flex-direction: column; gap: 5px; }
.ao-author-name { font-size: 22px; font-weight: 700; color: #f0f4ff; line-height: 1.2; font-family: 'Helvetica Neue', Arial, sans-serif; }
.ao-author-role { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6366f1; }
.ao-author-stats { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.ao-author-stat { display: flex; flex-direction: column; gap: 1px; }
.ao-stat-val { font-size: 18px; font-weight: 700; color: #7eb8f7; line-height: 1.1; }
.ao-stat-lbl { font-size: 10px; color: #4a5568; text-transform: uppercase; letter-spacing: 0.06em; }
.ao-author-stat-sep { width: 1px; height: 28px; background: rgba(255,255,255,0.08); flex-shrink: 0; }
.ao-author-forum-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 600; color: #6366f1;
    text-decoration: none; margin-top: 4px; transition: color 0.15s;
}
.ao-author-forum-link:hover { color: #a5b4fc; text-decoration: none; }

/* ── Recent titles bar ── */
#ao-section-bar {
    width: 100%; background: #0e1117;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative; margin-bottom: 0;
}
#ao-section-bar::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(99,102,241,.7) 30%, rgba(139,92,246,1) 50%, rgba(99,102,241,.7) 70%, transparent 100%);
}
.ao-bar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 14px; height: 42px; }
.ao-bar-left { display: flex; align-items: center; gap: 9px; }
.ao-bar-accent { display: inline-block; width: 3px; height: 16px; background: linear-gradient(180deg,#818cf8,#6366f1); border-radius: 2px; }
.ao-bar-title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #c8ccd4; white-space: nowrap; }
.ao-bar-tabs {
    display: flex; align-items: center; gap: 3px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
    border-radius: 7px; padding: 3px;
}
.ao-bar-tab {
    display: flex; align-items: center; gap: 5px;
    padding: 4px 13px; border-radius: 5px;
    font-size: 12px; font-weight: 600; letter-spacing: .03em;
    color: #7a8494; background: none; border: 1px solid transparent;
    cursor: pointer; transition: color .15s, background .15s, border-color .15s; white-space: nowrap;
}
.ao-bar-tab:hover { color: #dde3ee; background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.2); }
.ao-bar-tab.active { color: #fff; background: linear-gradient(135deg,rgba(99,102,241,.28),rgba(139,92,246,.22)); border-color: rgba(99,102,241,.5); }
.ao-bar-tab.active svg { stroke: #a5b4fc; }
.ao-bar-right { display: flex; justify-content: flex-end; }
.ao-rss-link {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 5px;
    border: 1px solid rgba(251,146,60,.28); background: rgba(251,146,60,.07);
    color: #fb923c; font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
    transition: background .15s, border-color .15s; white-space: nowrap;
}
.ao-rss-link:hover { background: rgba(251,146,60,.16); border-color: rgba(251,146,60,.55); color: #fdba74; text-decoration: none; }
#ao-slider-wrap {
    background: #0c0f16;
    border-bottom: 1px solid rgba(255,255,255,.05);
    width: 100%;
}
.rt-panels-wrap {
    position: relative;
    padding: 12px 50px 14px;
    overflow: hidden;
}
.rt-panel { display: none; }
.rt-panel.active { display: block; }
.rt-track {
    display: flex; flex-direction: row; gap: 10px;
    padding: 0 2px;
    transform: translateX(0);
    transition: transform .35s cubic-bezier(.25,.46,.45,.94);
}
.rt-card {
    flex: 0 0 150px; width: 150px; text-decoration: none;
    border-radius: 7px; overflow: hidden; background: #151a24;
    border: 1px solid rgba(255,255,255,.07);
    transition: transform .18s, border-color .18s; display: block;
}
.rt-card:hover { transform: translateY(-3px); border-color: rgba(99,102,241,.5); text-decoration: none; }
.rt-card-poster { position: relative; width: 150px; height: 220px; background: #1a2030; overflow: hidden; }
.rt-card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.rt-card:hover .rt-card-poster img { transform: scale(1.05); }
.rt-card-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.13); }
.rt-overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,.65) 0%,transparent 55%); pointer-events: none; }
.rt-ep-badge {
    position: absolute;
    bottom: 7px; left: 7px;
    background: rgba(20, 60, 160, 0.82);
    border: 1px solid rgba(126,184,247,0.5);
    color: #d6eaff;
    font-size: 10px; font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    white-space: nowrap;
    pointer-events: none;
}
.rt-card-info { padding: 6px 7px 8px; display: flex; flex-direction: column; gap: 3px; }
.rt-card-name {
    font-size: 11px; font-weight: 600; color: #dde3ee; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rt-card-date { font-size: 10px; color: #3d4a5c; }
.rt-card-done { font-size: 10px; font-weight: 700; color: #10b981; letter-spacing: .02em; }
.rt-card-ep {
    position: absolute;
    bottom: 7px; left: 7px;
    background: rgba(30,80,180,0.88);
    color: #c8dcff;
    font-size: 10px; font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: .03em;
    white-space: nowrap;
    pointer-events: none;
    backdrop-filter: blur(2px);
}
