/* ===========================================
   SHARED VIEWER STYLES
   Wspólne style dla stron: OLD, KALK, CA, BW
   =========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: #000000;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    letter-spacing: 0.02em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 
===========================================
CONTAINER - Bootstrap-like responsive widths
=========================================== 
*/
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* 
===========================================
NAVIGATION BAR
=========================================== 
*/
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
    display: flex;
    align-items: baseline;
    gap: 32px;
    flex-wrap: wrap;
    padding: 24px 16px;
}

.nav-name {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
}

.nav-link {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
}

/* 
===========================================
MAIN VIEWER
=========================================== 
*/
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 16px 40px 16px;
    min-height: calc(100vh - 120px);
}

/* Photo container */
.photo-viewer {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 20px 0;
}

.photo-viewer img {
    max-width: 100%;
    max-height: calc(100vh - 280px);
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.photo-viewer img.loaded {
    opacity: 1;
}

/* 
===========================================
NAVIGATION CONTROLS (Prev / Next)
=========================================== 
*/
.viewer-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 24px 0;
}

.nav-btn {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 8px 0;
}

.nav-btn:hover {
    color: #000;
}

.nav-btn.disabled {
    color: #ccc;
    cursor: default;
    pointer-events: none;
}

/* Separator between prev and next */
.nav-separator {
    color: #ccc;
    font-size: 11px;
    font-weight: 300;
}

/* Photo counter */
.photo-counter {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #999;
    margin-top: 16px;
}

/* 
===========================================
FOOTER
=========================================== 
*/
.footer {
    padding: 40px 16px;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-text {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #666;
    line-height: 1.8;
}

.footer-text a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #000;
}

/* 
===========================================
KEYBOARD HINT
=========================================== 
*/
.keyboard-hint {
    position: fixed;
    bottom: 16px;
    right: 24px;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #bbb;
    text-transform: uppercase;
}

/* 
===========================================
RESPONSIVE - MOBILE
=========================================== 
*/
@media (max-width: 576px) {
    .container {
        max-width: 100%;
    }
    
    .main-content {
        padding: 90px 16px 30px 16px;
    }
    
    .photo-viewer img {
        max-height: calc(100vh - 260px);
    }
    
    .viewer-controls {
        gap: 32px;
    }
    
    .nav-inner {
        padding: 16px;
        gap: 16px;
    }
    
    .nav-name {
        font-size: 12px;
    }
    
    .nav-link {
        font-size: 10px;
    }
    
    .keyboard-hint {
        display: none;
    }
    
    .footer {
        padding: 30px 16px;
    }
    
    .footer-text {
        font-size: 10px;
    }
}
