/* Global Styles */
:root {
    --primary-color: #333;
    --secondary-color: #666;
    --background-color: #fff;
    --accent-color: #f0f0f0;
    --hover-color: #e0e0e0;
}

/* Impressionist Background Canvas - REMOVED */
/*
#impressionist-bg {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    display: block;
}
*/

/* Define WindSong font family */
@font-face {
    font-family: 'WindSong';
    src: url('../WindSong/WindSong-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'WindSong';
    src: url('../WindSong/WindSong-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--background-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo a {
    font-family: 'WindSong', cursive;
    font-size: 2rem;
    font-weight: 500;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 2rem;
}

nav a {
    font-weight: 500;
}

/* Main Content */
#content {
    min-height: calc(100vh - 180px);
    padding: 0rem 5% 2rem;
}

/* Home Page */
.gallery-grid {
    column-count: 3;
    column-gap: 1rem;
    margin-top: 2rem;
}

.painting-card {
    break-inside: avoid;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    background-color: var(--background-color);
}

.painting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.painting-card img {
    width: 100%;
    height: auto;
    display: block;
}

.painting-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.painting-card:hover .painting-info {
    opacity: 1;
}

.painting-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0;
}

.contact-info {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.contact-info a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* About Page */
.about-container {
    /* Remove old layout styles */
    /* max-width: 1000px; */ 
    /* margin: 1rem auto; */
    /* display: flex; */
    /* align-items: flex-start; */
    /* gap: 4rem; */
    
    /* Add background styles */
    position: relative;
    overflow: hidden;
    padding: 4rem 5%; /* Add padding around the content box */
    background-image: url('../images/fullsize/Laka - Dzikie Jaskry.jpg'); 
    background-size: cover; 
    background-position: center center;
    background-repeat: no-repeat;
}

/* Overlay for About Page background */
.about-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.15); /* Match hero overlay */
    filter: blur(3px); /* Match hero blur */
    z-index: 1; 
}

/* New wrapper for the actual content (image + text) */
.about-content-wrapper {
    position: relative; /* Sit above overlay */
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.85); /* Match hero content */
    border: 6px solid #d4af37; /* Match hero content */
    padding: 2rem; /* Adjust as needed */
    border-radius: 4px; /* Match hero content */
    max-width: 1000px; /* Limit width */
    margin: 0 auto; /* Center the box */
    
    /* Restore flex layout inside the box */
    display: flex;
    align-items: flex-start;
    gap: 2rem; /* Adjust gap inside box */
}

.about-image {
    flex: 0 0 320px;
    /* Remove padding, let wrapper handle it */
    padding: 0;
}

.about-container img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.bio {
    flex: 1;
    line-height: 1.8;
}

.bio h1 {
    margin-bottom: 1.5rem;
}

/* Painting Page */
.painting-detail {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* New wrapper for image and nav */
.painting-image-nav-wrapper {
    position: relative;
    margin-bottom: 2rem; /* Keep space below image/nav */
    /* Add padding to prevent nav links overlapping narrow images */
    padding-left: 170px; /* Slightly more than default nav offset */
    padding-right: 170px; /* Slightly more than default nav offset */
    box-sizing: border-box; /* Ensure padding is included in width calculation */
}

.painting-detail img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    /* margin-bottom: 2rem; */ /* Removed margin, handled by wrapper */
    display: block; /* Ensure no extra space below image */
}

.painting-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.painting-detail-info p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.painting-detail-info .price {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0;
}

.painting-navigation {
    /* display: flex; */ /* No longer flex */
    /* justify-content: space-between; */
    /* margin: 2rem 0; */ /* Removed margin */
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none; /* Allow clicks through container */
    z-index: 10; /* Above image if needed */
}

.nav-link {
    font-family: 'WindSong', cursive; /* Re-apply font */
    color: var(--primary-color);
    transition: color 0.3s ease; /* Only transition color */
    font-size: 1.8rem; /* Adjust font size for WindSong if needed */
    display: inline-flex; /* Back to inline-flex or flex */
    align-items: center;
    /* justify-content: center; */ /* Remove centering for text */
    position: absolute; 
    top: 0; 
    transform: translateY(0); 
    /* Remove background/sizing/shadow */
    /* background-color: rgba(255, 255, 255, 0.7); */
    /* border-radius: 50%; */
    /* width: 40px; */
    /* height: 40px; */
    /* padding: 0; */
    pointer-events: auto; 
    /* opacity: 0.7; */
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
    white-space: nowrap; /* Prevent text wrapping */
}

.nav-link:hover {
    color: var(--secondary-color);
    /* background-color: rgba(255, 255, 255, 0.9); */ /* Remove hover background */
    /* opacity: 1; */ /* Remove hover opacity */
}

.nav-link .arrow {
    display: inline-block; /* Back to inline-block */
    margin: 0 0.5em; /* Restore margin */
    font-size: 1.2em; /* Restore arrow size relative to text */
    /* line-height: 1; */ /* Remove line-height fix */
}

/* Specific positioning for prev/next text links */
.nav-link.prev-link {
    left: -150px; /* Increase offset significantly for text */
}

.nav-link.next-link {
    right: -150px; /* Increase offset significantly for text */
}

.contact-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--background-color);
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid var(--accent-color);
}

.contact {
    text-align: left;
}

.social {
    text-align: right;
}

.contact h3, .social h3 {
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.contact p {
    margin-bottom: 0.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-icon svg {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2;
    }
    /* Add breakpoint if needed to adjust offsets */
    .nav-link.prev-link {
        left: -120px;
    }
    .nav-link.next-link {
        right: -120px;
    }
    /* Adjust wrapper padding for this breakpoint */
    .painting-image-nav-wrapper {
        padding-left: 140px;
        padding-right: 140px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        column-count: 1;
    }
    
    footer {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .contact {
        margin-bottom: 1.5rem;
    }
    
    .social {
        text-align: left;
        margin-top: 0;
    }
    
    .painting-detail {
        padding: 1rem 0;
    }

    .about-container {
        /* Adjust padding for smaller screens */
        padding: 2rem 3%;
    }

    /* Make content wrapper flex column on smaller screens */
    .about-content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .about-image {
        flex-basis: auto; /* Allow image to resize */
        width: 100%;
        max-width: 350px;
        margin-bottom: 0; /* Remove margin handled by gap */
    }
    
    .bio {
        text-align: left; /* Keep bio text left-aligned */
        width: 100%; /* Take full width in column layout */
    }
    /* Adjust nav link position for smaller screens */
    .nav-link {
        font-size: 1.6rem; /* Adjust font size */
    }
    .nav-link.prev-link {
        left: -20px; /* Bring closer */
    }
    .nav-link.next-link {
        right: -20px; /* Bring closer */
    }
    /* Adjust wrapper padding for this breakpoint */
    .painting-image-nav-wrapper {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 1rem 5%;
    }

    .logo a {
        font-size: 1.8rem;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav li {
        margin: 0 0.8rem;
    }

    #content {
        padding: 1.5rem 5%;
    }

    .painting-detail img {
        max-height: 50vh;
    }

    .painting-detail-info h1 {
        font-size: 1.6rem;
    }

    .nav-link {
        font-size: 1.4rem; /* Further adjust font size */
        /* Consider hiding text and showing only arrows on very small screens */
        /* Or positioning them below/above the image */
    }
    .nav-link.prev-link {
        left: 5px; /* Position inside edge */
        text-align: left;
    }
    .nav-link.next-link {
        right: 5px; /* Position inside edge */
        text-align: right;
    }
    .nav-link .arrow {
         font-size: 1em;
         margin: 0 0.3em;
     }
    /* Further adjust or hide nav buttons on very small screens */
    .painting-image-nav-wrapper {
         margin-bottom: 1rem;
         padding-left: 0;
         padding-right: 0;
    }
}

/* Painting Page - New Details */
.painting-specs {
    margin: 1.5rem 0;
}

.painting-specs p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.painting-specs p:last-child {
    margin-bottom: 0;
}

.painting-specs strong {
    margin-right: 0.5em;
}

/* Filter Styles */
.controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.filter-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    flex-grow: 1;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.filter-container label,
.sort-container label {
    margin-bottom: 0;
    font-weight: 500;
    white-space: nowrap;
}

.series-filter .filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.series-filter .filter-tag {
    background-color: #ddd;
    border: none;
    padding: 0.4rem 0.8rem;
    margin-bottom: 0;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.series-filter .filter-tag:hover {
    background-color: #ccc;
}

.series-filter .filter-tag.active {
    background-color: var(--primary-color);
    color: white;
}

#price-slider {
    width: 150px;
    cursor: pointer;
}

#price-value {
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}

.sort-container {
    margin-left: auto;
}

#sort-select {
    padding: 0.4rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-color);
    width: 100%;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    padding: 2rem 5% 2rem 5%; /* Reduced top padding, added bottom padding */
    color: white; 
    text-align: center; 
    min-height: 70vh; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    overflow: hidden; 
    margin-bottom: 2rem;
    
    /* Background Image */
    background-image: url('../images/fullsize/Laka - Dzikie Jaskry.jpg'); /* Updated filename */
    background-size: cover; 
    background-position: center center;
    background-repeat: no-repeat;
}

/* Add overlay for text readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    filter: blur(3px); /* Added blur effect to overlay */
    /* Ensure blur doesn't extend beyond hero section boundaries */
    /* Might need transform: scale(1.05) or similar if edges look weird, but start without */
    z-index: 1; 
}

.hero-content {
    background-color: rgba(255, 255, 255, 0.85); /* Slightly less transparent maybe */
    border: 6px solid #d4af37;
    padding: 2rem 2.5rem;
    text-align: center;
    max-width: 750px;
    width: 85%;
    position: relative; /* Keep content above overlay */
    z-index: 2;
    border-radius: 4px;
}

.hero-title {
    font-family: 'WindSong', cursive;
    font-size: 3.8rem;
    font-weight: 500;
    color: #003366;
    margin-bottom: 0.8rem;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
}

.hero-artist-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: black;
    font-weight: 400;
    margin-bottom: 1rem;
}

.hero-decorator {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4af37'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-section {
        min-height: 45vh;
        padding: 1.5rem 1rem;
    }
    .hero-content {
        padding: 1.8rem;
        border-width: 5px;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-subtitle {
        font-size: 0.85rem;
    }
    .hero-artist-name {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 40vh;
        padding: 1rem 0.8rem;
    }
    .hero-content {
        padding: 1.2rem;
        border-width: 4px;
        width: 90%;
    }
    .hero-title {
        font-size: 1.9rem;
    }
    .hero-subtitle {
        font-size: 0.75rem;
    }
    .hero-artist-name {
        font-size: 0.9rem;
    }
    .hero-decorator {
        width: 15px;
        height: 15px;
    }
} 