/* ===== PALETA RETRO ===== */
:root{
  --green-dark: #5c9ec5;
  --green-light: #cedeee;
  --violet-dark: #545255;
  --violet-light: #efe4f5;
  --border: #383bc2;
  --subheader: #5492da;
}

/* ===== TŁO ===== */
body{
  margin:0;
  font-family: Tahoma, Verdana, sans-serif;
  background: radial-gradient(135deg, var(--green-light), var(--violet-light));
  background: url("./img/icons/kosmos.gif");
}

/* ===== OKNO ===== */
#container{
  max-width: 900px;
  margin: 30px auto;
  background: #ffffff;
  border: 3px solid var(--border);
  /* box-shadow: 1px 1px 50px #635cc2; */
  position: relative; /* BARDZO WAŻNE */
  overflow: visible;   /* pozwala oknom wychodzić */
}


/* ===== PASEK TYTUŁU ===== */
header{
  background: linear-gradient(to right, #aa076b, #61045f);
  color: #f3fff9;
  padding: 12px 16px;
  font-size: 1.4em;
  font-weight: bold;
  text-shadow: 1px 1px #000;
}

/* ===== PODPASEK ===== */
.subheader{
  background: var(--subheader);
  border-bottom: 2px solid var(--border);
  padding: 3px 8px;
  font-size: 0.82em;
  color: #ffffff;
}

.subheader *{
  margin: 0;
}


.subheader a:hover{
  font-weight: bold;
  background: linear-gradient(to right, #245edb, #3a7bd5);
}

/* ===== WIN XP WINDOW BAR ===== */
.window-bar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #245edb, #3a7bd5);
  color: white;
  padding: 6px 10px;
  font-weight: bold;
  font-size: 0.95em;
  text-shadow: 1px 1px #000;
}

.window-left{
  display: flex;
  align-items: center;
  gap: 8px;
}

.win-icon{
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}

/* ===== BUTTONS ===== */
.window-buttons{
  display: flex;
  gap: 4px;
}

.window-buttons .btn{
  width: 18px;
  height: 18px;
  border: 1px solid #000;
  background: linear-gradient(#e6e6e6, #bdbdbd);
  box-shadow: inset 1px 1px #fff;
}

.window-buttons .btn.close{
  background: linear-gradient(#ff5c5c, #c80000);
}

.window-buttons .btn:hover{
  filter: brightness(1.1);
}

/* ===== TREŚĆ ===== */
article{
  padding: 0px 25px 0px 25px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
  font-size: 1.05em;
  color: #2a2a2a;
}

/* ===== LISTY (UL / LI) ===== */
article ul{
  margin: 12px 0 18px 32px;   /* mniejsze odstępy góra/dół */
  padding: 0;
  list-style-type: square;   /* bardziej retro niż disc */
}

article li{
  margin: 4px 0;             /* KLUCZ: mniejszy odstęp między punktami */
  padding-left: 4px;
  line-height: 1.55;
}

/* ===== LISTY A OBRAZKI FLOAT ===== */
article ul{
  background: #f8fcff;
  border: 1px dashed var(--green-dark);
  padding: 10px 14px;
}

article li::marker{
  color: var(--violet-dark);
}

/* ===== SEKCJE ===== */
.section-title{
  margin-top: 35px;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4em;
  color: var(--violet-dark);
  border-bottom: 4px solid var(--green-dark);
  padding-bottom: 4px;
}

img {
  border-radius: 5%;
}

/* ===== OBRAZKI OPŁYWANE ===== */
img.float-left{
  float: left;
  margin: 10px 20px 10px 0;
  max-width: 260px;
  border: 3px solid var(--green-dark);
  background: #fff;
}

img.float-right{
  float: right;
  margin: 10px 0 10px 20px;
  max-width: 260px;
  border: 3px solid var(--violet-dark);
  background: #fff;
}

/* ===== OBRAZEK CENTRALNY ===== */
img.center{
  display: block;
  margin: 30px auto;
  max-width: 80%;
  border: 3px solid var(--border);
  background: #fff;
}

/* ===== STOPKA ===== */
footer{
  background: linear-gradient(to right, #245edb, #3a7bd5);
  border-top: 2px solid var(--border);
  padding: 10px;
  text-align: center;
  font-size: 0.85em;
  color: white;
}

/* ===== RESPONSYWNOŚĆ ===== */
@media(max-width: 700px){
  img.float-left,
  img.float-right{
    float: none;
    display: block;
    margin: 20px auto;
    max-width: 90%;
  }
}

/* ===== OPEN FILE ANIMATION ===== */
@keyframes openWindow {
  0% {
    transform: scale(0.85) translateY(30px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

#container{
  animation: openWindow 0.5s ease-out;
}

/* ============================================= LAYOUT Z BOCZNYM OKNEM 18.02.2026 ============================================= */
.content-layout{
  display: flex;
  align-items: flex-start;
  gap: 20px;

}

#main-content{
  flex: 1;
}

.side-window{
  position: fixed;
  top: 120px;
  left: 65%;
  width: 340px;

  background: #fff;
  border: 2px solid #245edb;
  box-shadow: 4px 4px 0 #000;
  display: none;
}

/*animation: openWindow 0.25s ease-out;*/

/* ===== PASEK MINI OKNA ===== */
.mini-window-bar{
  background: linear-gradient(to right, #245edb, #3a7bd5);
  color: white;
  padding: 4px 8px;
  font-size: 0.85em;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== PRZYCISK ZAMKNIĘCIA ===== */
.mini-close{
  cursor: pointer;
  padding: 0 6px;
}

.mini-close:hover{
  background: red;
}

/* ===== TREŚĆ OKNA ===== */
.mini-content{
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
}

/* ===== XP TOOLBAR ===== */
.xp-toolbar{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.xp-toolbar button{
  background: linear-gradient(#f3f3f3, #d6d6d6);
  border: 1px solid #808080;
  padding: 4px 10px;
  font-family: Tahoma;
  cursor: pointer;
  box-shadow: inset 1px 1px #fff;
}

.xp-toolbar button:hover{
  background: linear-gradient(#ffffff, #c9e3ff);
}

.xp-toolbar button.active{
  background: linear-gradient(#3a7bd5, #245edb);
  color: white;
  border: 1px solid #0d3c91;
}


/* ================================================================================== */

/* ===== BOTTOM XP TOOLBAR ===== */
.bottom-toolbar{
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: linear-gradient(#f3f3f3, #d6d6d6);
  border-top: 2px solid #808080;
  padding: 4px 10px;

  font-family: Tahoma;
  font-size: 0.85em;
}

.bottom-left{
  font-weight: bold;
  color: #2b2b2b;
}

.bottom-actions{
  display: flex;
  gap: 6px;
}

/* Przyciski jako <a> */
.bottom-actions a{
  text-decoration: none;
  color: black;

  background: linear-gradient(#ffffff, #dcdcdc);
  border: 1px solid #808080;
  padding: 3px 8px;

  box-shadow: inset 1px 1px #fff;
  cursor: pointer;
  display: inline-block;
}

.bottom-actions a:hover{
  background: linear-gradient(#ffffff, #c9e3ff);
}

.bottom-actions a:active{
  background: linear-gradient(#3a7bd5, #245edb);
  color: white;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 768px){

  .side-window{
    position: fixed;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
  }

  .mini-window-bar{
    cursor: default; /* brak drag */
  }
}