/**
 * Nomarchy Summer Night — rofi whole-swap (themes/<slug>/rofi.rasi).
 * Ported from the legacy branch. The `configuration {}` block is omitted
 * on purpose: modi/terminal/show-icons come from modules/home/rofi.nix.
 * Iosevka 17 → a shipped Nerd Font.
 */

* {
    bg0:    #2d353b;
    fg:     #d3c6aa;
    red:    #e68183;
    yellow: #d9bb80;
    green:  #a7c080;
    aqua:   #83b6af;
    blue:   #83b6af;
    purple: #d39bb6;
    grey0:  #868d80;

    font: "JetBrainsMono Nerd Font 14";
    background-color: transparent;
    text-color: @fg;
}

window {
    transparency: "real";
    background-color: @fg;
    text-color: @bg0;
    border-bottom: 5px;
    border-color: @yellow;
    border-radius: 15px;
    width: 40%;
    /* No fixed height — size to content (fixed-num-lines:false) so every
     * entry shows without scrolling and there's no empty space below. */
    location: center;
    anchor: center;
    x-offset: 0;
    y-offset: 0;
}

mainbox {
    background-color: transparent;
    children: [ inputbar, listview ];
    spacing: 0px;
    padding: 0px;
}

inputbar {
    children: [ prompt, entry ];
    background-color: @green;
    text-color: @bg0;
    expand: false;
    border-bottom: 5px;
    border-color: @grey0;
    border-radius: 10px;
    margin: 15px;
    padding: 10px;
    spacing: 15px;
}

prompt {
    enabled: true;
    background-color: inherit;
    text-color: inherit;
}

entry {
    background-color: inherit;
    text-color: inherit;
    cursor: text;
    placeholder: "Type to search...";
    /* dimmed vs the prompt (item 28c) — bg0 at ~60% over the green */
    placeholder-color: #2d353b99;
}

listview {
    scrollbar: true;
    background-color: transparent;
    columns: 1;
    lines: 8;
    spacing: 0px;
    cycle: true;
    dynamic: true;
    layout: vertical;
    padding: 20px;
}

element {
    background-color: transparent;
    text-color: @bg0;
    orientation: horizontal;
    border-radius: 10px;
    padding: 10px;
    spacing: 15px;
}

/* Zebra striping: every other row lifts with a faint dark wash over the
 * cream window (bg0 at ~12% alpha). The selected row below still wins. */
element alternate.normal {
    background-color: #2d353b1f;
}

element-icon {
    background-color: transparent;
    text-color: inherit;
    size: 40px;
    cursor: inherit;
}

element-text {
    background-color: transparent;
    text-color: inherit;
    highlight: bold;
    cursor: inherit;
    vertical-align: 0.5;
    horizontal-align: 0.0;
}

element selected {
    background-color: @bg0;
    text-color: @fg;
    border-bottom: 5px;
    border-color: #161a1d;
    border-radius: 10px;
}

element-text selected {
    text-color: @fg;
}

element-icon selected {
    text-color: @fg;
}

scrollbar {
    width: 4px;
    handle-width: 4px;
    handle-color: @yellow;
    background-color: @bg0;
    border: 0px;
}
