
/**
 * plugins/generic/viewcounter/css/viewcounter.css
 *
 * Professional OJS View Counter
 * Journal Title Blue: #006798
 *
 * Compatible with existing OJSBR View Counter
 */

/* ========================================
   1. Main View Counter
   ======================================== */

.viewcounter-stats {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 12px;
    align-items: center;
    color: #006798 !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    white-space: nowrap;
}

/* Article summary */
.viewcounter-stats--summary {
    font-size: 13px;
}

/* ========================================
   2. Views and Downloads
   ======================================== */

.viewcounter-stats > .viewcounter-count,
.viewcounter-count > .viewcounter-visible {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #006798 !important;
    font-size: 13px;
    font-weight: 600;
    cursor: default;
}

/* ========================================
   3. Counter Icons
   ======================================== */

.viewcounter-stats svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: #006798 !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2;
}

/* SVG elements */
.viewcounter-stats svg path,
.viewcounter-stats svg circle,
.viewcounter-stats svg line,
.viewcounter-stats svg polyline,
.viewcounter-stats svg rect,
.viewcounter-stats svg ellipse,
.viewcounter-stats svg polygon {
    stroke: #006798 !important;
    fill: none !important;
}

/* ========================================
   4. Article Title Alignment
   ======================================== */

.viewcounter-title-host {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.viewcounter-title-host > .viewcounter-title-text,
.viewcounter-title-host > a {
    flex: 1 1 auto;
    min-width: 0;
}

/* ========================================
   5. Fallback Position
   ======================================== */

.obj_article_summary > .viewcounter-stats,
.main_entry > .viewcounter-stats {
    display: flex;
    margin: 0.5em 0;
}

/* ========================================
   6. Screen Reader Accessibility
   ======================================== */

.viewcounter-sr,
.viewcounter-stats.viewcounter-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ========================================
   7. Final Colour Consistency
   ======================================== */

.viewcounter-stats .viewcounter-count,
.viewcounter-stats .viewcounter-visible {
    color: #006798 !important;
}

.viewcounter-stats svg,
.viewcounter-stats svg * {
    color: #006798 !important;
    stroke: #006798 !important;
}

/* Preserve outline SVG appearance */
.viewcounter-stats svg,
.viewcounter-stats svg [fill="none"] {
    fill: none !important;
}

/* ========================================
   End of View Counter CSS
   ======================================== */
