/* ============================================================================
   PLIK: assets/css/base.css
   Base styles - REDESIGN 2025
   Ultra-minimal, flow-inspired design
   
   FIX v2.1: Usunięto drop-shadow powodujący białe obwódki
   ============================================================================ */

/* ========================================================================
   FONTS - Inter from Google Fonts
   ======================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ========================================================================
   CSS VARIABLES - Minimalist grayscale palette
   ======================================================================== */

:root {
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Colors - Grayscale */
    --color-text: #1a1a1a;
    --color-text-muted: #6b6b6b;
    --color-text-light: #9ca3af;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    --color-background: #ffffff;
    --color-background-light: #fafafa;

    /* Primary - Black */
    --color-primary: #111827;
    --color-primary-dark: #000000;
    --color-primary-light: #374151;

    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --border-color: var(--color-border);
    --text-primary: var(--color-text);
    --text-secondary: var(--color-text-muted);

    /* Gradients for routes/difficulty */
    --gradient-easy: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #6366f1 100%);
    --gradient-medium: linear-gradient(135deg, #34d399 0%, #14b8a6 50%, #06b6d4 100%);
    --gradient-hard: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #fb7185 100%);
    --gradient-expert: linear-gradient(135deg, #a78bfa 0%, #e879f9 50%, #ec4899 100%);

    /* Shadows - Ultra subtle */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.08);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Font Sizes */
    --text-xs: 10px;
    --text-sm: 12px;
    --text-base: 14px;
    --text-lg: 16px;
    --text-xl: 18px;

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;

    /* Transitions */
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
    
    color-scheme: light only;
}

/* ========================================================================
   RESET
   ======================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    color: var(--color-text);
    background: var(--color-background);
    overflow: hidden;

    color-scheme: light;

}

/* ========================================================================
   TYPOGRAPHY - Light & Airy
   ======================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-light);
    line-height: 1.2;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

h1 {
    font-size: 28px;
}
h2 {
    font-size: 20px;
}
h3 {
    font-size: 16px;
}

p {
    line-height: 1.6;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-text-muted);
}

/* ========================================================================
   FORM ELEMENTS
   ======================================================================== */

input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

/* ========================================================================
   UTILITIES
   ======================================================================== */

[x-cloak] {
    display: none !important;
}

.hidden {
    display: none !important;
}

/* Uppercase with letter spacing */
.uppercase-spaced {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}

/* Feed icon styling */
.feed-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feed-icon-box i {
    font-size: 18px;
    color: white !important; /* Override Font Awesome defaults */
}

.icon-svg {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(47%) sepia(8%) saturate(312%) hue-rotate(169deg) brightness(95%) contrast(88%);
    transition: filter 0.2s;
}

.icon-btn:hover .icon-svg,
.icon-btn.active .icon-svg {
    filter: brightness(0) saturate(100%) invert(45%) sepia(98%) saturate(2679%) hue-rotate(201deg) brightness(102%) contrast(101%);
}

.left-panel,
.route-details-panel,
.modal,
.modal-container,
.modal-header,
.modal-body,
.modal-footer {
  background: white !important;
  color: var(--color-text) !important;
}

/* Ensure table backgrounds */
.ranking-table tbody tr {
  background: white !important;
}

.ranking-table tbody tr:hover {
  background: #f9f9f9 !important;
}