/* apps.css — light, καθαρό theme για τις σελίδες των Apps
   (σκόπιμα πιο ανοιχτό από το dark cloud dashboard) */
:root {
    --bg:        #eef1f7;
    --surface:   #ffffff;
    --surface-2: #f6f8fc;
    --text:      #1f2733;
    --muted:     #5d6776;
    --border:    #e3e8f0;
    --border-2:  #d3dbe6;
    --orange:    #ff4500;
    --orange-2:  #ff6a2b;
    --blue:      #2188ff;
    --cyan:      #0bb6d6;
    --ok:        #16a34a;
    --shadow:    0 8px 28px rgba(31,55,99,0.08);
    --shadow-lg: 0 20px 50px rgba(31,55,99,0.14);
}
* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg); margin: 0; color: var(--text); }
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; color: #141a22; }
a { color: var(--blue); }
.apps-wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* soft gradient backdrop behind the whole content */
.apps-bg {
    background:
        radial-gradient(900px 480px at 12% -5%, rgba(33,136,255,0.10), transparent 60%),
        radial-gradient(820px 460px at 92% 8%, rgba(255,69,0,0.08), transparent 60%);
}

/* ── Hero / description ─────────────────────────────── */
.hero { text-align: center; padding: 58px 20px 30px; }
.hero .kicker {
    font-family: 'JetBrains Mono', monospace; font-size: 12.5px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--blue); font-weight: 600;
    background: rgba(33,136,255,0.10); border: 1px solid rgba(33,136,255,0.18);
    padding: 5px 13px; border-radius: 999px; display: inline-block; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 700; letter-spacing: -1px; margin: 0 0 14px; }
.hero p { font-size: clamp(1rem, 1.9vw, 1.18rem); color: var(--muted); max-width: 760px; margin: 0 auto; line-height: 1.65; }
.hero .hero-cta { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* App icon used in hero of detail pages */
.app-badge-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 6px; }

/* ── Screenshots frame (dashboards) ─────────────────── */
.shots-frame {
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
    box-shadow: var(--shadow-lg); padding: 22px; margin: 18px auto 0; max-width: 1040px;
}
.shots-scroll {
    display: flex; gap: 16px; overflow-x: auto; padding: 6px 4px 12px; scroll-snap-type: x mandatory;
}
.shots-scroll::-webkit-scrollbar { height: 8px; }
.shots-scroll::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }
.shots-scroll img {
    height: 380px; border-radius: 14px; border: 1px solid var(--border); scroll-snap-align: center;
    flex-shrink: 0; background: var(--surface-2); box-shadow: var(--shadow);
}
.shots-hint { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* ── Sections ───────────────────────────────────────── */
.section { padding: 52px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: 1.9rem; text-align: center; margin: 0 0 8px; }
.section .sub { color: var(--muted); text-align: center; max-width: 640px; margin: 0 auto 36px; line-height: 1.6; }
.section-eyebrow { text-align:center; font-family:'JetBrains Mono',monospace; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--orange); margin-bottom:6px; }

/* ── Download badges grid ───────────────────────────── */
.dl-row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.dl-badge {
    display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 22px 26px; min-width: 150px; transition: transform .2s, box-shadow .2s, border-color .2s;
    box-shadow: var(--shadow);
}
.dl-badge:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.dl-badge img { height: 46px; width: auto; }
.dl-badge .ic { font-size: 2.4rem; color: var(--text); }
.dl-badge .lbl { font-weight: 600; color: var(--text); font-size: 15px; }
.dl-badge .sub2 { font-size: 12px; color: var(--muted); margin-top: -4px; }

/* ── Download images (frameless, like virtuino.com) ─── */
.dl-img-row { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; align-items: flex-start; }
.dl-img-row a { text-decoration: none; display: block; line-height: 0; }
.dl-img { width: 215px; max-width: 42vw; height: auto; display: block; border-radius: 8px; transition: transform .2s, filter .2s; }
.dl-img-row a:hover .dl-img { transform: translateY(-6px); filter: drop-shadow(0 14px 26px rgba(31,55,99,0.20)); }

/* ── Feature / generic cards grid ───────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px;
    box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; text-decoration: none; color: inherit; display: block;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .ic {
    width: 50px; height: 50px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.35rem; color: #fff; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 6px 18px rgba(33,136,255,0.3);
}
.card.orange .ic { background: linear-gradient(135deg, var(--orange), var(--orange-2)); box-shadow: 0 6px 18px rgba(255,69,0,0.28); }
.card h3, .card h4 { margin: 0 0 8px; color: #141a22; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
.card .go { display: inline-flex; align-items: center; gap: 7px; color: var(--orange); font-weight: 600; font-size: 14px; margin-top: 16px; }
.card:hover .go { color: var(--blue); }

/* ── Full-bleed showcase band (landing) ─────────────── */
.showcase { padding: 8px 0 4px; }
.show-band {
    width: 100%; overflow: hidden; position: relative;
    background: linear-gradient(120deg, #0e1726 0%, #14233a 50%, #1b1531 100%);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 34px 0;
}
/* soft fade on the edges so it reads as an edge-to-edge frame */
.show-band::before, .show-band::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.show-band::before { left: 0;  background: linear-gradient(90deg, #0e1726, transparent); }
.show-band::after  { right: 0; background: linear-gradient(270deg, #1b1531, transparent); }
.show-track {
    display: flex; gap: 18px; width: max-content; padding: 0 9px;
    animation: marquee 48s linear infinite;
}
.show-band:hover .show-track { animation-play-state: paused; }
.show-track img {
    height: 300px; border-radius: 16px; flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.09); box-shadow: 0 16px 38px rgba(0,0,0,0.45);
    background: #0c1220;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .show-track { animation: none; overflow-x: auto; width: 100%; }
}
.showcase-copy { text-align: center; padding: 34px 22px 8px; max-width: 760px; }
.showcase-copy .tag { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--blue); margin-bottom: 12px; }
.showcase-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 12px; }
.showcase-copy p { color: var(--muted); font-size: 15.5px; line-height: 1.65; margin: 0 auto 20px; }

/* ── App landing cards (with image) ─────────────────── */
.app-card { overflow: hidden; padding: 0; }
.app-card img.cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--surface-2); border-bottom: 1px solid var(--border); display:block; }
.app-card .pad { padding: 24px 26px 26px; }
.app-card .tag { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--blue); margin: 4px 0 12px; }

/* ── Tutorial cards (video) ─────────────────────────── */
.tut-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.tut {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; text-decoration: none; color: inherit; display: block;
}
.tut:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tut .thumb { position: relative; aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.tut .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tut .thumb .play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(10,18,30,0.18);
}
.tut .thumb .play i { color: #fff; font-size: 2.6rem; text-shadow: 0 4px 18px rgba(0,0,0,0.5); transition: transform .2s; }
.tut:hover .thumb .play i { transform: scale(1.12); }
.tut .pad { padding: 18px 20px 20px; }
.tut .pad h4 { margin: 0 0 6px; font-size: 1.08rem; }
.tut .pad p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* ── Version table + install steps (sub-pages) ──────── */
.ver-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.ver-table th, .ver-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.ver-table th { background: var(--surface-2); font-family: 'Space Grotesk', sans-serif; color: #141a22; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.ver-table tr:last-child td { border-bottom: none; }
.ver-table td.ver { font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.ver-table .latest { display:inline-block; font-size:11px; font-weight:700; color:#fff; background:var(--ok); padding:2px 8px; border-radius:999px; margin-left:8px; vertical-align:middle; }
.ver-table a.dl { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-weight: 600; text-decoration: none; }
.ver-table a.dl:hover { color: var(--orange); }

.steps { counter-reset: step; max-width: 760px; margin: 0 auto; }
.step { position: relative; padding: 0 0 22px 56px; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-weight: 700;
    display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif;
}
.step:not(:last-child)::after { content: ''; position: absolute; left: 18px; top: 40px; bottom: 6px; width: 2px; background: var(--border-2); }
.step h4 { margin: 6px 0 8px; font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.step code, .codeblock { font-family: 'JetBrains Mono', monospace; }
.codeblock {
    display: block; background: #0f1722; color: #d6e2f0; border-radius: 10px; padding: 13px 16px;
    font-size: 13px; margin: 10px 0 0; overflow-x: auto; border: 1px solid #1d2a3a;
}
.callout {
    background: rgba(33,136,255,0.07); border: 1px solid rgba(33,136,255,0.2); border-left: 3px solid var(--blue);
    border-radius: 10px; padding: 14px 16px; color: #2b3a4d; font-size: 14px; line-height: 1.6; max-width: 760px; margin: 22px auto 0;
}
.callout.warn { background: rgba(255,69,0,0.06); border-color: rgba(255,69,0,0.25); border-left-color: var(--orange); }

/* ── Code examples list ─────────────────────────────── */
.ex-group { margin-bottom: 30px; }
.ex-group h3 { font-size: 1.25rem; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.ex-group .lib { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.ex-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ex {
    display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 13px 16px; text-decoration: none; color: inherit; transition: all .2s; box-shadow: var(--shadow);
}
.ex:hover { border-color: var(--blue); transform: translateY(-3px); }
.ex i { color: var(--cyan); font-size: 1.3rem; }
.ex .t { font-weight: 600; color: #141a22; font-size: 14px; }
.ex .h { font-size: 12px; color: var(--muted); }

/* ── Resources panel (code examples + video tutorials) ─ */
.res-panel {
    max-width: 720px; margin: 0 auto; background: var(--surface);
    border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden;
}
.res-row {
    display: flex; align-items: center; gap: 15px; padding: 16px 22px;
    border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; transition: background .15s;
}
.res-row:last-child { border-bottom: none; }
.res-row:hover { background: var(--surface-2); }
.res-row .ic { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: #fff; flex-shrink: 0; }
.res-row .txt { flex: 1; min-width: 0; }
.res-row .txt .t { font-weight: 600; color: #141a22; font-size: 15.5px; }
.res-row .txt .s { font-size: 12.5px; color: var(--muted); }
.res-row .arr { color: var(--muted); transition: transform .2s, color .2s; flex-shrink: 0; }
.res-row:hover .arr { color: var(--blue); transform: translateX(3px); }

/* ── Buttons ────────────────────────────────────────── */
.btn-primary2, .btn-ghost2 {
    display: inline-flex; align-items: center; gap: 9px; font-family: 'Space Grotesk', sans-serif;
    font-weight: 600; font-size: 15px; padding: 13px 26px; border-radius: 11px; text-decoration: none; transition: all .2s; cursor: pointer; border: none;
}
.btn-primary2 { color: #fff; background: linear-gradient(100deg, var(--orange), var(--orange-2)); box-shadow: 0 8px 22px rgba(255,69,0,0.28); }
.btn-primary2:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,69,0,0.42); color: #fff; }
.btn-ghost2 { color: var(--text); background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--shadow); }
.btn-ghost2:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--blue); }

.divider-soft { height: 1px; border: none; background: var(--border); margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 13.5px; padding: 22px 0 4px; }
.back-link:hover { color: var(--blue); }
.note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 16px; }
.note code { background: var(--surface); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; }
