/*
Theme Name: Minimal Theme
Theme URI: https://example.com
Description: Minimalistyczny szablon WordPress z off-canvas menu, galerią zdjęć i filmów
Author: Your Name
Author URI: https://example.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minimal-theme
*/

/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Varela Round', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #fff;
    z-index: 1001;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
}

/* Menu Toggle Button */
.menu-toggle {
    background: #000;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: #555;
}

/* Top Logo */
.top-logo {
    display: flex;
    align-items: center;
}

.top-logo img {
    max-height: 50px;
    width: auto;
}

.top-logo h1 {
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    color: #333;
}

.top-logo .custom-logo-link {
    display: flex;
    align-items: center;
}

/* Container */
.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 70px;
    transition: padding 0.3s ease;
}

/* Off-Canvas Menu */
.off-canvas-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #222;
    color: #fff;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 80px 20px 20px 20px;
}

.off-canvas-menu.is-open {
    left: 0;
}

.off-canvas-menu nav ul {
    list-style: none;
}

.off-canvas-menu nav li {
    margin-bottom: 15px;
}

.off-canvas-menu nav a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px;
    transition: background 0.3s ease;
    border-radius: 4px;
}

.off-canvas-menu nav a:hover {
    background: #333;
}

/* Overlay gdy menu otwarte */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Main Content - Photography Focus */
.site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 40px 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Content */
.content-wrapper {
    width: 100%;
    max-width: 1200px;
}

/* Entry Title Styling */
.entry-title {
    font-family: 'Varela Round', sans-serif;
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #222;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Entry Content */
.entry-content {
    margin-top: 30px;
}

.entry-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

/* Footer */
.site-footer {
    padding: 30px 20px 20px 20px;
    text-align: center;
}

.footer-contact {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-contact h3 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #333;
}

.contact-info {
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-item {
    display: inline-block;
}

.contact-info a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #666;
}

/* Gallery Styles - Optimized for Photography */
.photo-gallery,
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
    padding: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: #000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.gallery-item:hover img {
    opacity: 0.9;
    transform: scale(1.05);
}

.gallery-item video {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* Lightbox dla galerii - Enhanced for Photography */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.97);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox.is-active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 95%;
    max-height: 95%;
    position: relative;
    animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 95vh;
    display: block;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border: none;
    z-index: 2001;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(0,0,0,0.8);
    transform: rotate(90deg);
}

/* Responsive - Photography Optimized */
@media (max-width: 1024px) {
    .photo-gallery,
    .video-gallery {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .site-main {
        padding: 40px 20px;
    }

    .photo-gallery,
    .video-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        margin-top: 40px;
    }

    .gallery-item img,
    .gallery-item video {
        height: 280px;
    }

    .top-logo h1 {
        font-size: 18px;
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
    }

    .entry-title {
        font-size: 32px;
    }

    .lightbox-close {
        width: 50px;
        height: 50px;
        font-size: 40px;
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .photo-gallery,
    .video-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-item img,
    .gallery-item video {
        height: 300px;
    }

    .top-logo h1 {
        font-size: 16px;
    }

    .entry-title {
        font-size: 28px;
    }

    .site-main {
        padding: 30px 15px;
    }
}