/*
This software is free software: you can do whatever you want with it.
Developed by Franck LEFEVRE for K1 (https://k1info.com), aided by a team of friendly and funny robots.
Please use the enormous power of this software to do good things for things and people, always ensuring it harms nothing and nobody.
*/
/* Core CSS always loaded (not swapped). Holds global tokens and base UI elements. */
:root {
  /* Brand palette tokens */
  --color-navy: #0A2A43;        /* Primary surface */
  --color-accent-blue: #2F8BE6; /* Rings, outlines */
  --color-aqua: #4CBEFF;        /* Links / hovers / callouts */
  --color-yellow: #FFB300;      /* Warm accent 1 */
  --color-orange: #FF6E3D;      /* Warm accent 2 */
  --color-white: #FFFFFF;       /* Inverse text */

  /* Semantic aliases */
  --bg-primary: var(--color-navy);
  --text-on-primary: var(--color-white);
  --link: var(--color-aqua);
  --outline: var(--color-accent-blue);

  /* Gradients */
  --grad-water: linear-gradient(135deg, #2F8BE6 0%, #4CBEFF 100%);
  --grad-sunbeam: linear-gradient(135deg, #FFB300 0%, #FF6E3D 100%);

  /* Controls */
  --icon-btn-bg: rgba(10,42,67,0.35);       /* Navy translucent for better contrast */
  --icon-btn-bg-hover: rgba(10,42,67,0.50);

  /* Viewer background (used for post display) */
  --viewer-bg: #0b0b0f; /* Dark background for posts */
  /* Application font family (can be overridden by inline style from server) */
  --app-font-family: Arial, Helvetica, sans-serif;
}

.hidden { display: none; }
.spinner-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; z-index: 20000; /* Above menus and modals */ }
.hourglass { width: 32px; height: 32px; border: 4px solid rgba(255,255,255,0.4); border-top-color: #fff; border-bottom-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Global font stack uses a CSS variable that the server can override dynamically. */
body { font-family: var(--app-font-family, Arial, Helvetica, sans-serif); }
