/* Güner Gültekin - Sanat Galerisi CSS */

/* Variables */
:root {
    --color-primary: #8b6f47;
    --color-secondary: #d4a574;
    --color-accent: #f0e8d8;
    --color-dark: #2c2c2c;
    --color-light: #faf8f5;
    --color-border: #e8dcc8;
    --spacing-unit: 1rem;
}

/* Gallery Grid */
.guner-gallery {
    display: grid;
    gap: 2.5rem;
    padding: 2rem 0;
}

.guner-gallery[data-columns="3"] {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.guner-gallery[data-columns="2"] {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.guner-gallery[data-columns="1"] {
    grid-template-columns: 1fr;
}

/* Gallery Item */
.gallery-item {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
}

/* Artwork Frame - Şövale Efekti */
.artwork-frame {
    background: linear-gradient(135deg, #f9f7f4 0%, #ebe7e1 100%);
    padding: 2.5rem;
    border-radius: 2px;
    position: relative;
    margin-bottom: 1.5rem;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
}

/* Canvas background */
.artwork-frame::before {
    content: '';
    position: absolute;
    inset: 2rem;
    background: #fefdfb;
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 1px;
    pointer-events: none;
    z-index: 1;
}

/* Easel legs effect */
.artwork-frame::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(139, 69, 19, 0.2), rgba(139, 69, 19, 0.05));
    pointer-events: none;
    z-index: 0;
}

/* Image within frame */
.artwork-image {
    position: relative;
    z-index: 2;
    width: calc(100% - 4rem);
    height: calc(100% - 4rem);
    object-fit: cover;
    border-radius: 1px;
    display: block;
}

/* Placeholder */
.artwork-placeholder {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.3);
    font-size: 14px;
    background: linear-gradient(135deg, #e8dcc8 0%, #d4c4a8 100%);
}

/* Sold Badge */
.sold-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(220, 53, 69, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 2px;
    z-index: 3;
    backdrop-filter: blur(4px);
}

/* Lightbox Link */
.lightbox-link {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.lightbox-link:hover {
    opacity: 0.95;
}

/* Artwork Info */
.artwork-info {
    padding: 1.5rem 0;
    text-align: center;
}

.artwork-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 0.5rem;
    font-family: Georgia, serif;
}

.artwork-size {
    font-size: 13px;
    color: #888;
    margin: 0.5rem 0 1rem;
    letter-spacing: 0.5px;
}

.view-details {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.view-details:hover {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

/* === EXHIBITIONS === */

.guner-exhibitions {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 2rem 0;
}

.exhibition-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease;
}

.exhibition-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.exhibition-image {
    width: 280px;
    height: 240px;
    overflow: hidden;
    background: var(--color-accent);
}

.exhibition-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.exhibition-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8dcc8 0%, #d4c4a8 100%);
    color: rgba(0, 0, 0, 0.3);
}

.exhibition-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.exhibition-content h3 {
    margin: 0 0 1rem;
    font-size: 22px;
    font-weight: 600;
    color: var(--color-dark);
    font-family: Georgia, serif;
}

.exhibition-content h3 a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.exhibition-content h3 a:hover {
    color: var(--color-primary);
}

.exhibition-location,
.exhibition-dates {
    margin: 0.5rem 0;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exhibition-location .dashicons,
.exhibition-dates .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    width: fit-content;
}

.read-more:hover {
    color: var(--color-secondary);
}

/* === PUBLICATIONS === */

.guner-publications {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.publication-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-8px);
}

.publication-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1rem;
    background: var(--color-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.publication-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.publication-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d4a574 0%, #c89968 100%);
    color: white;
    font-size: 12px;
}

.publication-meta h4 {
    margin: 0 0 0.5rem;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dark);
    font-family: Georgia, serif;
}

.pub-magazine {
    margin: 0 0 0.5rem;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
}

.pub-info {
    margin: 0;
    color: #888;
    font-size: 12px;
}

/* === SINGLE PAGE STYLES === */

.guner-single-painting {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.painting-hero {
    background: linear-gradient(135deg, #f9f7f4 0%, #ebe7e1 100%);
    padding: 3rem;
    border-radius: 4px;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.painting-image-container {
    background: #fefdfb;
    border: 2px solid rgba(139, 69, 19, 0.3);
    padding: 2rem;
    border-radius: 1px;
    width: 100%;
    max-width: 600px;
}

.painting-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1px;
}

.painting-details {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.painting-details h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 1.5rem;
    color: var(--color-dark);
    font-family: Georgia, serif;
}

.detail-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.detail-value {
    color: var(--color-dark);
    line-height: 1.6;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: 1px solid var(--color-border);
}

.tag:hover {
    background-color: var(--color-border);
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
    .guner-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    }

    .artwork-frame {
        min-height: 300px;
        padding: 1.5rem;
    }

    .exhibition-item {
        grid-template-columns: 1fr;
    }

    .exhibition-image {
        width: 100%;
        height: 250px;
    }

    .guner-publications {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .painting-hero {
        padding: 2rem;
        min-height: 350px;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .guner-gallery {
        grid-template-columns: 1fr;
    }

    .artwork-frame {
        padding: 1rem;
        min-height: 250px;
    }

    .artwork-frame::before {
        inset: 1rem;
    }

    .artwork-image {
        width: calc(100% - 2rem);
        height: calc(100% - 2rem);
    }

    .guner-publications {
        grid-template-columns: 1fr;
    }

    .publication-cover {
        aspect-ratio: 3 / 4;
    }
}

/* === LIGHTBOX OVERRIDE === */

#lightboxOverlay {
    background-color: rgba(0, 0, 0, 0.95) !important;
}

.lb-outerContainer {
    border-radius: 2px;
}

.lb-image {
    border-radius: 1px;
}


/* ==========================================================================
   Dahili Lightbox
   ========================================================================== */

body.guner-lightbox-open {
    overflow: hidden;
}

.guner-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(20, 18, 15, 0.94);
}

.guner-lightbox.is-open {
    display: flex;
}

.guner-lightbox-figure {
    margin: 0;
    max-width: 90vw;
    max-height: 88vh;
    text-align: center;
}

.guner-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.guner-lightbox-caption {
    margin-top: 1rem;
    color: #f4efe6;
    font-family: Georgia, serif;
    font-size: 16px;
}

.guner-lightbox button {
    background: none;
    border: 0;
    color: #f4efe6;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.75rem;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.guner-lightbox button:hover {
    opacity: 1;
}

.guner-lightbox-prev,
.guner-lightbox-next {
    font-size: 48px;
}

.guner-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 40px;
}

@media (max-width: 600px) {
    .guner-lightbox {
        padding: 1rem;
        gap: 0.25rem;
    }

    .guner-lightbox-prev,
    .guner-lightbox-next {
        font-size: 32px;
    }
}
