/* Zmienne globalne */
:root {
  --neon-green: #00ff41;
  --neon-orange: #ffaa00;
  --neon-blue: #00ccff;
  --neon-purple: #b026ff;
  --dark-bg: #0a0a0a;
  --pylon-gradient: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
}

/* ===== RESET I BAZY ===== */
body {
  background: var(--dark-bg);
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  padding: 40px 20px;
}

h1 {
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  text-align: center;
}

/* ===== KONTROLKI I KALENDARZ ===== */
.controls {
  width: 100%;
  max-width: 300px;
  background: var(--pylon-gradient);
  border: 4px solid #333;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 1), 0 0 20px rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.controls label {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  width: 100%;
}

input[type="date"] {
  background: #050505;
  border: 4px solid #333;
  border-radius: 8px;
  color: #fff;
  padding: 10px 15px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

input[type="date"]:hover { border-color: #555; }
input[type="date"]:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* ===== PYLON LED ===== */
.pylon {
  background: var(--pylon-gradient);
  border: 4px solid #333;
  border-radius: 12px;
  padding: 30px;
  width: 100%;
  box-shadow: 0 0 60px rgba(0, 0, 0, 1), 0 0 20px rgba(255, 255, 255, 0.03);
  transition: opacity 0.5s ease, filter 0.5s ease;
  box-sizing: border-box;
}

.price-row {
  background: #050505;
  border: 2px solid #222;
  margin: 15px 0;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 6px;
}

.label { font-size: 1.1rem; font-weight: 900; color: #444; }
.price { font-family: 'Courier New', Courier, monospace; font-size: 2.4rem; font-weight: bold; letter-spacing: 1px; }

#pb95 { color: var(--neon-green); text-shadow: 0 0 12px var(--neon-green); }
#pb98 { color: var(--neon-blue); text-shadow: 0 0 12px var(--neon-blue); }
#on { color: var(--neon-orange); text-shadow: 0 0 12px var(--neon-orange); }

.info { font-size: 0.75rem; color: #555; text-align: center; margin-top: 20px; line-height: 1.6; }
.info a { color: #888; text-decoration: underline; transition: color 0.2s; }
.info a:hover { color: #fff; }

/* ===== UKŁAD TREŚCI ===== */
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin-bottom: 40px;
}

.pylon-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ===== WYKRESY TRENDY ===== */
#chartsContainer {
  width: 100%;
  max-width: 900px;
  padding: 20px;
  background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
  border: 4px solid #333;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 1), 0 0 20px rgba(255, 255, 255, 0.03);
  display: none;
  box-sizing: border-box;
}

#chartsContainer h2 {
  font-size: 1.2rem;
  margin: 0 0 15px 0 !important;
}

#chartsContainer .charts-grid {
  gap: 20px !important;
  display: grid;
  grid-template-columns: 1fr;
}

#chartsContainer .chart-item {
  max-height: none;
}

#chartsContainer .chart-item canvas {
  max-height: none !important;
}

#chartsContainer .chart-info {
  margin-top: 10px !important;
  font-size: 0.7rem !important;
}

/* ===== RESPONSIVE / MEDIA QUERIES ===== */
@media (min-width: 1024px) {
  .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: center; gap: 30px; }
  .pylon-column:nth-child(1) { display: flex; flex-direction: column; gap: 15px; width: 400px; flex-shrink: 0; }
  .pylon-column:nth-child(2) { display: flex; flex-direction: column; gap: 15px; flex-grow: 1; max-width: 600px; }
  .pylon, .controls { width: 400px; max-width: none; flex-shrink: 0; }
  #chartsContainer { width: 100%; max-width: 600px !important; display: block !important; }
  #chartsContainer h2 { font-size: 1rem; margin: 0 0 12px 0 !important; }
  #chartsContainer .charts-grid { gap: 15px !important; }
  #chartsContainer .chart-item { padding: 10px !important; }
  #chartsContainer .chart-item canvas { max-height: 120px; }
  #chartsContainer .chart-info { margin-top: 8px !important; font-size: 0.65rem !important; }
}

@media (max-width: 1023px) {
  .content-wrapper { flex-direction: column; }
  .pylon-column { width: 100%; max-width: 100%; }
  .controls, .pylon, #chartsContainer { width: 100% !important; max-width: 100% !important; }
}

/* Desktop: Disclaimer na stronie prognozy ma pełną szerokość */
@media (min-width: 1024px) {
  .disclaimer { max-width: 900px; }
}

/* ===== STOPKA ===== */
.footer { margin-top: auto; padding: 40px 20px; text-align: center; font-size: 0.8rem; color: #444; width: 100%; }
.author-link { color: #888; text-decoration: none; font-weight: bold; }
.author-link:hover { color: var(--neon-green); }

/* ===== PRZYCISK PROGNOZY ===== */
.forecast-button {
  display: block;
  margin-top: 20px;
  color: var(--neon-purple);
  text-decoration: none;
  border: 1px solid var(--neon-purple);
  padding: 12px 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(176, 38, 255, 0.05);
}

.forecast-button:hover {
  background: rgba(176, 38, 255, 0.2);
  box-shadow: 0 0 15px rgba(176, 38, 255, 0.4);
  transform: translateY(-2px);
}

/* ===== STRONA PROGNOZY ===== */
.forecast-container {
  width: 100%;
  max-width: 900px;
  display: block;
  box-sizing: border-box;
}

.forecast-title {
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  font-size: 1.5rem;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 900px;
  margin-top: 20px;
}

.day-card {
  background: var(--pylon-gradient);
  border: 2px solid #333;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 1), 0 0 10px rgba(176, 38, 255, 0.1);
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.day-card:hover {
  border-color: var(--neon-purple);
  transform: translateY(-5px);
}

.day-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.ai-comment {
  font-style: italic;
  color: var(--neon-purple);
  text-align: center;
  margin: 20px auto;
  padding: 15px;
  background: rgba(176, 38, 255, 0.05);
  border-left: 4px solid var(--neon-purple);
  border-radius: 4px;
  max-width: 800px;
}

.disclaimer {
  background: rgba(176, 38, 255, 0.1);
  border: 1px solid var(--neon-purple);
  border-radius: 8px;
  padding: 15px 20px;
  max-width: 900px;
  text-align: center;
  font-size: 0.85rem;
  color: #d896ff;
  margin-bottom: 20px;
  line-height: 1.5;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.trend-up { color: #ff4444; }
.trend-down { color: var(--neon-green); }
.trend-flat { color: #888; }

.nav-link {
  color: #888;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  transition: color 0.3s;
}
.nav-link:hover { color: var(--neon-green); }

.main-chart-wrapper {
  background: #050505;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #333;
  margin-bottom: 30px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    width: 100%;  max-width: 900px;}