/* ── ARHiNET Preglednik ─────────────────────────────────────────────── */

#arhinet-app {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Upload zone */
.arh-upload-zone {
    border: 2px dashed #c0bdb5;
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    background: #faf9f7;
    color: #666;
    transition: border-color .2s, background .2s;
    cursor: pointer;
}
.arh-upload-zone.drag-over {
    border-color: #3a5a8c;
    background: #eef3fa;
}
.arh-upload-zone svg {
    display: block;
    margin: 0 auto .75rem;
    color: #888;
}
.arh-upload-zone p {
    margin: 0 0 .75rem;
}

/* Buttons */
.arh-btn {
    display: inline-block;
    padding: .45rem 1.1rem;
    background: #3a5a8c;
    color: #fff !important;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s;
}
.arh-btn:hover { background: #2e4870; }

.arh-btn-outline {
    display: inline-block;
    padding: .4rem 1rem;
    background: transparent;
    color: #3a5a8c;
    border: 1px solid #3a5a8c;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s;
    white-space: nowrap;
}
.arh-btn-outline:hover { background: #eef3fa; }

/* Fond header */
.arh-fond-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background: #f4f2ee;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.arh-fond-naziv {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 3px;
}
.arh-fond-meta {
    font-size: 13px;
    color: #666;
}

/* Stats */
.arh-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}
.arh-stat {
    flex: 1;
    background: #f4f2ee;
    border-radius: 8px;
    padding: .7rem 1rem;
    text-align: center;
}
.arh-stat-n {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
}
.arh-stat-l {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* Search */
.arh-search-wrap {
    margin-bottom: 1rem;
}
.arh-search-wrap input {
    width: 100%;
    box-sizing: border-box;
    padding: .55rem .85rem;
    border: 1px solid #ccc;
    border-radius: 7px;
    font-size: 14px;
    background: #fff;
    color: #1a1a1a;
    outline: none;
    transition: border-color .15s;
}
.arh-search-wrap input:focus { border-color: #3a5a8c; }

/* Serija block */
.arh-serija-block {
    margin-bottom: 7px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.arh-serija-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: .6rem 1rem;
    cursor: pointer;
    background: #fff;
    user-select: none;
    transition: background .12s;
}
.arh-serija-header:hover { background: #f7f6f3; }

.arh-badge-serija {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    color: #2e4870;
    background: #dde7f5;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: uppercase;
}
.arh-serija-naziv {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    flex: 1;
}
.arh-serija-god {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}
.arh-cnt-badge {
    font-size: 11px;
    color: #888;
    background: #efefed;
    padding: 1px 7px;
    border-radius: 10px;
    white-space: nowrap;
}
.arh-chevron {
    font-size: 13px;
    color: #999;
    transition: transform .2s;
    flex-shrink: 0;
}
.arh-chevron.open { transform: rotate(180deg); }

/* Podserije */
.arh-podserije {
    display: none;
    background: #faf9f7;
    border-top: 1px solid #e8e6e1;
}
.arh-podserije.open { display: block; }

.arh-podsrj-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: .5rem 1rem .5rem 1.5rem;
    border-bottom: 1px solid #eeecе8;
}
.arh-podsrj-row:last-child { border-bottom: none; }

.arh-badge-podserija {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    color: #5a6e40;
    background: #e2edce;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    flex-shrink: 0;
}
.arh-podsrj-naziv {
    font-size: 13px;
    color: #222;
    flex: 1;
}
.arh-podsrj-god {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}

/* Error */
.arh-error {
    background: #fdecea;
    border: 1px solid #f5c6c3;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: #a02020;
    font-size: 14px;
    margin-top: 1rem;
}

/* No results */
.arh-no-results {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-size: 14px;
}

@media (max-width: 540px) {
    .arh-fond-header { flex-direction: column; }
    .arh-stats { flex-direction: column; }
    .arh-serija-god, .arh-podsrj-god { display: none; }
}
