/* --- global --- */
body {
    margin: 0;
    padding: 0;
    background-color: #f4f6f9;
    background-image: 
        linear-gradient(to right, rgba(200, 210, 220, 0.4) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(200, 210, 220, 0.4) 1px, transparent 1px);
    background-size: 30px 30px;
    font-family: 'Space Grotesk', sans-serif;
    color: #5a6675;
    height: 100vh;
    overflow: hidden; 
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><circle cx="8" cy="8" r="5" fill="%23a9b5c2"/></svg>'), auto;
}

a, button, .window-header, .desktop-icon, .floaty {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M8 0v16M0 8h16" stroke="%238a9ba8" stroke-width="2"/></svg>'), pointer;
}

.desktop {
    position: relative;
    width: 100%;
    height: 100%;
}

/* --- main windows index.html --- */
.window {
    position: absolute; 
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid #dbe2e8;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.window-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #dbe2e8;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #8a9ba8;
    letter-spacing: 1px;
    cursor: grab;
}
.window-header:active { cursor: grabbing; }

.dots { display: flex; gap: 6px; margin-right: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #dbe2e8; }
.window-content { padding: 25px; }

h1 { font-weight: 500; margin-top: 0; margin-bottom: 15px; color: #435060; font-size: 1.6rem; }
p { font-size: 0.95rem; line-height: 1.6; margin: 0; }
.nav-links { display: flex; flex-direction: column; gap: 10px; }
.nav-links a {
    text-decoration: none; color: #5a6675; padding: 8px; text-align: center;
    border: 1px solid #dbe2e8; border-radius: 6px;
    background: rgba(255, 255, 255, 0.5); transition: all 0.2s;
}
.nav-links a:hover { background: #fff; transform: translateX(3px); }

/* --- main page layout (RESPONSIVE) --- */
.center-window     { top: 5vh;   left: 2.5vw; width: 380px; z-index: 25; }
.nav-window        { top: 37vh;  left: 2.5vw; width: 190px; z-index: 12; }
.desktop-icon      { top: 83vh;  left: 8vw;   z-index: 5; }

.calendar-window   { top: 36vh;  left: 21vw;  width: 200px; z-index: 27; }
.weather-window    { top: 68vh;  left: 20vw;  width: 170px; z-index: 26; }

.guestbook-window  { top: 5vh;   left: 39vw;  width: 240px; z-index: 30; }
.music-window      { top: 50vh;  left: 39vw;  width: 300px; z-index: 23; }

.photo-window      { top: 3.5vh; left: 76vw;  width: 240px; z-index: 13; }
.status-window     { top: 34vh;  left: 62vw;  width: 200px; z-index: 31; transform: rotate(-2deg); }
.social-window     { top: 45vh;  left: 82vw;  width: 160px; z-index: 15; }
.counter-window    { top: 75vh;  left: 65vw;  width: 180px; z-index: 32; transform: rotate(2deg); }

/* --- special inner window --- */
.photo-window img { width: 100%; display: block; }
.weather-content { padding: 15px; text-align: center; }
.weather-icon { font-size: 2.5rem; }
.weather-content h2 { margin: 5px 0; font-size: 1.5rem; color: #435060; font-weight: 500; }
.weather-content p { font-size: 0.8rem; margin: 0; }

.cal-content { padding: 15px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; font-size: 0.8rem; color: #5a6675; }
.cal-grid span { padding: 2px 0; }
.cal-grid .fade { color: #a9b5c2; opacity: 0.5; }
.cal-grid .active { background: #dbe2e8; border-radius: 4px; font-weight: 500; color: #435060; }
.music-content { padding: 10px; }

/* counter - curently not working ;; */
.counter-content { padding: 15px 10px; text-align: center; font-size: 0.85rem; }
.counter-content p { margin: 0 0 8px 0; font-weight: 500; }
.counter-content img { max-width: 100%; border-radius: 4px; }

/* Folder */
.desktop-icon { position: absolute; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #5a6675; font-size: 0.8rem; }
.desktop-icon:hover { opacity: 0.8; }
.desktop-icon svg { margin-bottom: 5px; }

/* --- STATUS.CAFE WIDGET (DOPASOWANY DO TWOJEJ STRONY) --- */
#statuscafe {
    padding: 0;
    background: transparent;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
}

#statuscafe-username {
    font-weight: 500;
    font-size: 0.95rem;
    color: #435060;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #dbe2e8;
}

#statuscafe-content {
    font-size: 0.85rem;
    color: #5a6675;
    line-height: 1.6;
    margin: 0;
}
/* --- taskbar + stamps --- */
.taskbar {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 45px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid #dbe2e8;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; box-sizing: border-box; z-index: 9999;
    font-size: 0.85rem; color: #5a6675;
}
.stamps { display: flex; gap: 5px; }
.stamps img { width: 88px; height: 31px; image-rendering: pixelated; opacity: 0.8; transition: opacity 0.2s; }
.stamps img:hover { opacity: 1; }

/* --- floaties --- */
.floaty {
    position: fixed; z-index: 0; opacity: 0.5; pointer-events: none; --rot: 0deg; 
    animation: floatUpDown 5s ease-in-out infinite;
}
@keyframes floatUpDown {
    0% { transform: translateY(0px) rotate(var(--rot)); }
    50% { transform: translateY(-15px) rotate(var(--rot)); }
    100% { transform: translateY(0px) rotate(var(--rot)); }
}

.jelly-1  { top: 3%; left: 3%; width: 55px; animation-delay: 0.3s; --rot: 15deg; }
.jelly-2  { top: 48%; left: 4%; width: 90px; animation-delay: 1.5s; --rot: -10deg; }
.jelly-3  { top: 85%; left: 6%; width: 65px; animation-delay: 2.8s; --rot: 25deg; }
.jelly-4  { top: 38%; left: 16%; width: 45px; animation-delay: 0.8s; --rot: -15deg; }
.jelly-5  { top: 28%; left: 26%; width: 40px; animation-delay: 3.2s; --rot: 5deg; }
.jelly-6  { top: 6%; left: 38%; width: 75px; animation-delay: 1.1s; --rot: -20deg; }
.jelly-7  { top: 88%; left: 28%; width: 38px; animation-delay: 4.0s; --rot: 10deg; }
.jelly-8  { top: 18%; left: 52%; width: 50px; animation-delay: 2.2s; --rot: -5deg; }
.jelly-9  { top: 75%; left: 48%; width: 95px; animation-delay: 0.5s; --rot: 12deg; }
.jelly-10 { top: 8%; right: 32%; width: 110px; animation-delay: 1.9s; --rot: -18deg; }
.jelly-11 { top: 42%; right: 28%; width: 48px; animation-delay: 3.5s; --rot: 8deg; }
.jelly-12 { top: 62%; right: 38%; width: 35px; animation-delay: 2.7s; --rot: -22deg; }
.jelly-13 { top: 4%; right: 4%; width: 42px; animation-delay: 0.1s; --rot: 14deg; }
.jelly-14 { top: 52%; right: 8%; width: 115px; animation-delay: 1.7s; --rot: -8deg; }
.jelly-15 { top: 82%; right: 22%; width: 40px; animation-delay: 3.8s; --rot: 20deg; }
.jelly-16 { top: 86%; right: 5%; width: 75px; animation-delay: 2.0s; --rot: -12deg; }

/* --- BLOG PAGE STYLES --- */
.blog-nav {
    top: 122px;
    left: 48px;
    width: 180px;
    z-index: 23;
}

.blog-main {
    top: 88px;
    left: 270px;
    width: 50vw;       /* half width */
    max-width: 700px;  /* 700px>/ */
    z-index: 24;
}

/* inner blog scroll (within window) */
.blog-scroll {
    max-height: 65vh;  
    overflow-y: auto;  
    padding: 30px;
}

/* blog scroll */
.blog-scroll::-webkit-scrollbar {
    width: 8px;
}
.blog-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.blog-scroll::-webkit-scrollbar-thumb {
    background: #dbe2e8;
    border-radius: 10px;
}
.blog-scroll::-webkit-scrollbar-thumb:hover {
    background: #a9b5c2;
}

/* single blog post style */
.blog-post {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #dbe2e8; /* post line div */
}
.blog-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.post-title {
    margin: 0 0 5px 0;
    color: #435060;
    font-size: 1.6rem;
}

.post-date {
    display: block;
    font-size: 0.85rem;
    color: #8a9ba8;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.post-text p {
    margin-bottom: 15px;
    color: #5a6675;
}

/* --- 404 / NOT FOUND PAGE STYLES --- */
.error-window {
    top: 30vh;
    left: calc(50vw - 200px); 
    width: 400px;
    text-align: center;
    z-index: 10;
}

.bored-window {
    top: 20vh;
    right: 15vw;
    width: 250px;
    z-index: 5;
    text-align: center;
    transform: rotate(3deg);
}

/* 404 site - buttons function */
.home-btn {
    display: inline-block;
    text-decoration: none;
    color: #5a6675;
    padding: 10px 20px;
    border: 1px solid #dbe2e8;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.home-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

#spawnBtn {
    font-family: 'Space Grotesk', sans-serif;
    color: #5a6675;
    padding: 10px 15px;
    border: 1px solid #dbe2e8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

#spawnBtn:hover {
    background: #fff;
    transform: scale(1.05);
}

/* --- new windows to blog navi (status + music box) --- */
.blog-status {
    top: 83px;
    left: 964px;
    width: 220px;
    z-index: 25;
    transform: rotate(2deg);
}

.blog-music {
    top: 528px;
    left: 943px;
    width: 280px;
    z-index: 26;
}

/* --- scroll --- */
.blog-scroll {
    max-height: 65vh;  
    overflow-y: auto;  
    padding: 30px;
    scroll-behavior: smooth; /* smooth archive scroll */
}

/* --- archive --- */
.archive-dropdown {
    margin-top: 8px;
}
.archive-dropdown summary {
    cursor: pointer;
    padding: 8px;
    text-align: center;
    border: 1px solid #dbe2e8;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.5);
    color: #5a6675;
    list-style: none; 
    transition: all 0.2s;
    font-size: 0.95rem;
}
/* hid arrow */
.archive-dropdown summary::-webkit-details-marker { display: none; }
.archive-dropdown summary:hover { background: #fff; }

.archive-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
    padding-left: 5px;
}

/* no full frame - short nav override */
.window .nav-links .archive-links a {
    font-size: 0.8rem;
    padding: 5px 8px;
    background: transparent;
    border: none;
    border-left: 2px solid #dbe2e8;
    border-radius: 0;
    text-align: left;
}
.window .nav-links .archive-links a:hover {
    transform: translateX(4px);
    background: transparent;
    border-left-color: #a9b5c2;
}