/* Brand Design Variables - Be an Angel Theme */
:root {
    --brand-red: #e30613;
    --brand-red-hover: #b8040f;
    --brand-red-light: rgba(227, 6, 19, 0.05);
    --brand-red-border: rgba(227, 6, 19, 0.25);
    --text-primary: #111111;
    --text-muted: #555555;
    --bg-card: #f9f9f9;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #FFFFFF;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.catalogue-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px 60px;
    text-align: center;
}

.catalogue-header h1 {
    font-weight: 900;
    font-size: 3rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.catalogue-header h2 {
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.header-text {
    font-size: 1.1rem;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.header-text p {
    margin-bottom: 20px;
}

.header-text .highlight {
    font-style: italic;
    color: #222;
    padding: 20px 24px;
    margin-top: 30px;
    border-top: 2px solid var(--brand-red);
    border-left: 4px solid var(--brand-red);
    background-color: var(--brand-red-light);
    border-radius: 0 8px 8px 0;
}

/* Gallery Grid & View Switcher */
main {
    padding: 0 40px 80px;
}

.view-switcher-bar {
    max-width: 1600px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.view-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

.view-toggle-buttons {
    display: inline-flex;
    background: #EFEFEF;
    padding: 3px;
    border-radius: 20px;
}

.btn-view-mode {
    border: none;
    background: transparent;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #555;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-view-mode.active {
    background: var(--brand-red);
    color: #FFF;
    box-shadow: 0 2px 8px rgba(227, 6, 19, 0.25);
}

.gallery.view-grid-mode {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery.view-artist-mode {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.artist-section {
    background: #FFFFFF;
    border: 1px solid #E8E6E3;
    border-radius: 12px;
    padding: 35px 40px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}

.artist-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.artist-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--brand-red);
}

.artist-header-top {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.artist-name {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    color: #111;
    margin: 0;
    text-transform: uppercase;
}

.artist-origin {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-red);
}

.artist-bio {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

.artist-artworks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Artwork Card */
.artwork-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.artwork-img-wrapper {
    cursor: zoom-in;
    margin-bottom: 20px;
    background: var(--bg-card);
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.artwork-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.artwork-img-wrapper:hover {
    border-color: var(--brand-red-border);
    box-shadow: 0 10px 25px rgba(227, 6, 19, 0.15);
    transform: translateY(-4px);
}

.artwork-img-wrapper:hover img {
    opacity: 0.95;
    transform: scale(1.02);
}

.artwork-meta {
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.meta-artist {
    font-weight: 900;
    font-size: 1.05rem;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.artist-name-clickable {
    cursor: pointer;
    transition: color 0.2s ease;
}

.artist-name-clickable:hover {
    color: var(--brand-red);
}

.btn-artist-info {
    background: transparent;
    border: 1px solid #CCC;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-artist-info:hover {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
    color: #FFF;
}

.artwork-card:hover .meta-artist {
    color: var(--brand-red);
}

.meta-title-year {
    margin-bottom: 12px;
}

.meta-title {
    font-weight: 700;
}

.meta-year {
    font-style: italic;
    color: #444;
}

.meta-series,
.modal-series {
    font-size: 0.85rem;
    font-style: italic;
    color: #666;
    margin-top: 2px;
}

.meta-details {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.meta-sales {
    margin-bottom: 20px;
    color: #333;
}

/* Button */
.btn-enquire {
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    background-color: transparent;
    color: #111;
    border: 1.5px solid #111;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.25s ease;
    text-align: center;
    cursor: pointer;
}

.btn-enquire:hover {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
    color: #FFF;
    box-shadow: 0 4px 14px rgba(227, 6, 19, 0.25);
}

/* Lightbox Overlay */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    font-weight: 300;
    color: #111;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.lightbox-close:hover {
    color: var(--brand-red);
    opacity: 1;
}

/* Artist Modal Styling */
.artist-modal-content {
    max-width: 650px;
    padding: 35px 40px;
    border-radius: 12px;
}

.artist-modal-name {
    font-size: 1.7rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #111;
    letter-spacing: 0.02em;
}

.artist-modal-origin {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-red);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-red);
}

.artist-modal-bio-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}

.artist-modal-bio {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .gallery.view-grid-mode {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .gallery.view-grid-mode {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 30px;
    }

    .artist-section {
        padding: 25px 25px 30px;
    }

    .catalogue-header {
        padding: 60px 30px 40px;
    }
}

@media (max-width: 768px) {
    .artist-artworks-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .artist-name {
        font-size: 1.5rem;
    }

    .artist-header-top {
        gap: 6px;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .gallery.view-grid-mode {
        grid-template-columns: 1fr;
        gap: 60px 0;
    }

    .view-switcher-bar {
        justify-content: center;
        margin-bottom: 25px;
    }

    main {
        padding: 0 15px 60px;
    }

    .artist-modal-content {
        padding: 25px 20px;
    }

    .artist-section {
        padding: 20px 18px 25px;
        border-radius: 8px;
    }

    .catalogue-header {
        padding: 40px 20px 30px;
    }

    .catalogue-header h1 {
        font-size: 2.2rem;
    }

    .lightbox {
        padding: 10px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }

    .btn-enquire {
        display: block;
        width: 100%;
    }
}

/* Top Bar & Language Switcher */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.btn-main {
    text-decoration: none;
    color: var(--brand-red);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 18px;
    border: 1.5px solid var(--brand-red);
    border-radius: 4px;
    transition: all 0.25s ease;
}

.btn-main:hover {
    background: var(--brand-red);
    color: #fff;
    box-shadow: 0 4px 14px rgba(227, 6, 19, 0.25);
}

.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-switcher button {
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    padding: 5px 8px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-switcher button:hover {
    color: var(--brand-red);
}

.lang-switcher button.active {
    color: var(--brand-red);
    border-bottom: 2px solid var(--brand-red);
}

/* Purchase Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal-content {
    background: #fff;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--brand-red);
}

.modal-artwork-preview {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
}

#modal-artwork-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: var(--bg-card);
    border-radius: 4px;
}

#modal-artwork-info {
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-submit:hover {
    background: var(--brand-red-hover);
    box-shadow: 0 4px 14px rgba(227, 6, 19, 0.3);
}

/* Footer - Be an Angel Theme */
.site-footer {
    background-color: #111111;
    color: #eeeeee;
    padding: 60px 40px 30px;
    border-top: 4px solid var(--brand-red);
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h3 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 8px;
}

.footer-tagline {
    font-style: italic;
    color: var(--brand-red);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.92rem;
    color: #cccccc;
    line-height: 1.6;
    max-width: 580px;
}

.footer-links, .footer-partners {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.92rem;
}

.footer-links li, .footer-partners li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #dddddd;
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.25s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--brand-red);
    padding-left: 4px;
}

.footer-partners li {
    color: #cccccc;
}

.footer-partners span {
    color: #888888;
}

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: #888888;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-footer {
        padding: 40px 20px 20px;
    }
}