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

:root {
    --bg: #fafafa;
    --surface: #fff;
    --text: #1a1a1a;
    --text-secondary: #6b6b6b;
    --accent: #8b5e3c;
    --accent-light: #c4a678;
    --accent-dark: #5c3a21;
    --border: #e8e8e8;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.main { flex: 1; }

/* === Header === */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-dark);
    letter-spacing: -0.5px;
}

.nav { display: flex; gap: 32px; align-items: center; }

.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.15s;
    letter-spacing: -0.2px;
}

.nav__link:hover { color: var(--text); }
.nav__link--insta { color: var(--accent); font-weight: 600; }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 1px; }

@media (max-width: 768px) {
    .burger { display: flex; }
    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }
    .nav--open { display: flex; }
}

/* === Footer === */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 80px;
    padding: 32px 0;
}

.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__name { font-weight: 600; font-size: 15px; }
.footer__role { color: var(--text-secondary); font-size: 13px; margin-top: 2px; }
.footer__insta { color: var(--accent); font-weight: 500; font-size: 14px; }
.footer__copy { color: var(--text-secondary); font-size: 12px; margin-top: 4px; }

@media (max-width: 600px) {
    .footer__inner { flex-direction: column; text-align: center; gap: 16px; }
}

/* === Hero === */
.hero { padding: 80px 0 60px; }

.hero__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__name {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--accent-dark);
    letter-spacing: -1px;
}

.hero__tagline {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.hero__desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 24px;
    max-width: 420px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.hero__visual {
    position: relative;
    height: 400px;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
}
.hero__shape--1 {
    width: 280px; height: 280px;
    background: linear-gradient(135deg, var(--accent-light), #e8c89e);
    top: 20px; right: 20px;
}
.hero__shape--2 {
    width: 180px; height: 180px;
    background: linear-gradient(135deg, #c9b8a4, var(--accent));
    bottom: 0; left: 40px;
}
.hero__shape--3 {
    width: 100px; height: 100px;
    background: linear-gradient(135deg, var(--accent-dark), #8b6914);
    top: 60px; left: 80px;
}

@media (max-width: 768px) {
    .hero { padding: 40px 0; }
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .hero__name { font-size: 36px; }
    .hero__visual { height: 260px; }
    .hero__shape--1 { width: 180px; height: 180px; top: 10px; right: 10px; }
    .hero__shape--2 { width: 120px; height: 120px; bottom: 10px; left: 10px; }
    .hero__shape--3 { width: 60px; height: 60px; top: 40px; left: 50px; }
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent-dark);
    color: #fff;
}
.btn--primary:hover { background: var(--accent); }

.btn--outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { padding: 6px 14px; font-size: 13px; }

.btn--danger {
    background: transparent;
    border: 1px solid #e8d0d0;
    color: #c0392b;
}
.btn--danger:hover { background: #fef0f0; }

/* === Section Titles === */
.section__title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-dark);
}

/* === Gallery Grid === */
.gallery__grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery__grid--small { grid-template-columns: repeat(4, 1fr); }

.gallery__card {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery__card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery__card:hover .gallery__img { transform: scale(1.03); }

.gallery__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 28px;
    color: #fff;
    font-weight: 600;
}

.gallery__placeholder--1 { background: linear-gradient(135deg, #c4a678, #8b5e3c); }
.gallery__placeholder--2 { background: linear-gradient(135deg, #6b8f71, #4a6b53); }
.gallery__placeholder--3 { background: linear-gradient(135deg, #7b8fb2, #4a5f82); }
.gallery__placeholder--4 { background: linear-gradient(135deg, #b27b8a, #8b4a5c); }

.gallery__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    opacity: 0;
    transition: opacity 0.2s;
}

.gallery__card:hover .gallery__overlay { opacity: 1; }

.gallery__title {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.gallery__medium {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    margin-top: 4px;
}

/* === Filters === */
.gallery__filters {
    max-width: var(--max-width);
    margin: 24px auto 32px;
    padding: 0 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter__btn {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.15s;
}

.filter__btn:hover { border-color: var(--accent); color: var(--accent); }

.filter__btn--active {
    background: var(--accent-dark);
    color: #fff;
    border-color: var(--accent-dark);
}
.filter__btn--active:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* === Series === */
.series { padding: 80px 0; }

.series__grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.series__card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.series__card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.series__visual { height: 160px; }

.series__placeholder {
    width: 100%;
    height: 100%;
}
.series__placeholder--1 { background: linear-gradient(135deg, #8b5e3c, #c4a678); }
.series__placeholder--2 { background: linear-gradient(135deg, #4a6b53, #8fad94); }
.series__placeholder--3 { background: linear-gradient(135deg, #4a5f82, #a3b8d4); }
.series__placeholder--4 { background: linear-gradient(135deg, #8b4a5c, #c4a0a8); }

.series__info { padding: 16px; }

.series__name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-dark);
}

.series__desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.5;
}

@media (max-width: 900px) { .series__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .series__grid { grid-template-columns: 1fr; } }

/* === CTA === */
.cta { padding: 80px 0; }

.cta__inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 24px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cta__inner h2 {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--accent-dark);
    margin-bottom: 8px;
}

.cta__inner p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* === Painting Detail === */
.painting-detail { padding: 48px 0; }

.back-link {
    max-width: var(--max-width);
    margin: 0 auto 32px;
    padding: 0 24px;
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.15s;
}
.back-link:hover { color: var(--accent); }

.painting__layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.painting__image-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.painting__image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.painting__placeholder--large {
    width: 100%;
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 48px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.painting__title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    color: var(--accent-dark);
    line-height: 1.2;
}

.painting__series {
    font-size: 14px;
    color: var(--accent);
    margin-top: 8px;
    font-weight: 500;
}

.painting__meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.painting__description {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}

.painting__sold {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 16px;
    background: #fdf2f2;
    color: #b53030;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.painting__price {
    margin-top: 20px;
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--accent-dark);
    font-weight: 600;
}

.painting__actions { margin-top: 28px; }

.painting__other { margin-top: 80px; }

@media (max-width: 768px) {
    .painting__layout { grid-template-columns: 1fr; gap: 32px; }
    .painting__title { font-size: 28px; }
}

/* === Events === */
.events-page, .gallery-page, .about-page { padding: 48px 0; }

.page__title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    color: var(--accent-dark);
    text-align: center;
    margin-bottom: 40px;
}

.events__list {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.event__card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 200px 1fr;
}

.event__image-wrap { height: 100%; }

.event__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event__placeholder {
    width: 100%;
    height: 160px;
}
.event__placeholder--1 { background: linear-gradient(135deg, #8b5e3c, #c4a678); }
.event__placeholder--2 { background: linear-gradient(135deg, #4a6b53, #8fad94); }
.event__placeholder--3 { background: linear-gradient(135deg, #4a5f82, #a3b8d4); }

.event__info { padding: 20px 24px; }

.event__title {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--accent-dark);
}

.event__location {
    font-size: 13px;
    color: var(--accent);
    margin-top: 4px;
    font-weight: 500;
}

.event__desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 10px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .event__card { grid-template-columns: 1fr; }
    .event__placeholder { height: 180px; }
}

/* === About === */
.about__layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.about__avatar-shape {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: 3px solid rgba(255,255,255,0.4);
}

.about__subtitle {
    font-size: 16px;
    color: var(--accent);
    margin-top: 4px;
    font-weight: 500;
}

.about__bio {
    margin-top: 28px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}

.about__bio p + p { margin-top: 16px; }
.about__links { display: flex; gap: 12px; margin-top: 32px; }

@media (max-width: 768px) {
    .about__layout { grid-template-columns: 1fr; gap: 40px; }
    .page__title { font-size: 28px; }
}

/* === Empty State === */
.empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-secondary);
}
.empty p { margin-bottom: 20px; font-size: 16px; }

/* === Responsive Gallery === */
@media (max-width: 900px) {
    .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gallery__grid--small { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .gallery__grid { grid-template-columns: 1fr 1fr; gap: 6px; }
    .section__title { font-size: 24px; margin-bottom: 24px; }
    .hero__actions { flex-direction: column; }
}

/* === Login === */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 48px 24px;
}

.login__card {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login__title {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--accent-dark);
    margin-bottom: 24px;
}

.login__error {
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 12px;
}

.login__input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s;
}
.login__input:focus { border-color: var(--accent); }

.login__btn { width: 100%; margin-top: 12px; }

/* === Admin === */
.admin {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 24px;
}

.admin__title {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--accent-dark);
    margin-bottom: 32px;
}

.admin__section {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.admin__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin__header h2 {
    font-size: 17px;
    font-weight: 600;
}

.admin__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin__table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin__table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.admin__actions { display: flex; gap: 6px; }

/* === Admin Form === */
.admin-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 24px;
}

.admin-form h1 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--accent-dark);
    margin-bottom: 32px;
}

.form {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__group--full { grid-column: 1 / -1; }

.form__group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form__group input,
.form__group select,
.form__group textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.15s;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    border-color: var(--accent);
}

.form__checks {
    display: flex;
    gap: 20px;
    margin-top: 16px;
}

.form__check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.form__actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

/* === Instagram Admin === */
.admin__nav-back { margin-bottom: 24px; }
.admin__nav-top { margin-bottom: 24px; text-align: right; }

.insta-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}
.insta-alert--error { background: #fef0f0; color: #c0392b; border: 1px solid #f5c6c6; }
.insta-alert--ok { background: #f0faf4; color: #278046; border: 1px solid #c6e9d0; }

.insta-status {
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
}
.insta-status--on { background: #f0faf4; color: #278046; }
.insta-status--off { background: #f5f5f5; color: #888; }

.insta-info {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.insta-actions { display: flex; gap: 10px; }

.insta-help {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.insta-link { color: var(--accent); text-decoration: underline; }
.insta-link:hover { color: var(--accent-dark); }

.insta-form { margin-top: 12px; }
.insta-form .form__group { margin-bottom: 14px; }
.insta-form-actions { margin-top: 16px; }
