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

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #64b5f6;
    --accent-color: #42a5f5;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 5%;
}

@media (min-width: 1920px) {
    .container {
        padding: 0 8%;
    }
}

@media (max-width: 1400px) {
    .container {
        padding: 0 4%;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 3%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* ===========================
   Header & Navigation
   =========================== */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.logo {
    flex-shrink: 0;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.nav {
    flex-shrink: 0;
    margin-left: auto;
    text-align: right;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    white-space: nowrap;
}



.logo-subtitle {
    font-size: 0.9rem;
    color: var(--dark-gray);
    font-weight: 300;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    font-weight: 400;
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 1rem 0;
}

.mobile-menu li {
    border-bottom: 1px solid var(--medium-gray);
}

.mobile-menu a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-color);
}

.mobile-menu a:hover {
    background: var(--light-gray);
    color: var(--secondary-color);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    height: 70vh;
    min-height: 500px;
    background: url('https://images.unsplash.com/photo-1547826039-bfc35e0f1ea8?q=80&w=2000') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
                 0 4px 16px rgba(0, 0, 0, 0.2),
                 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3),
                 0 3px 12px rgba(0, 0, 0, 0.2),
                 0 1px 2px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* ===========================
   Buttons
   =========================== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* ===========================
   Section Styles
   =========================== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
}

/* ===========================
   Artists Section
   =========================== */
.artists-section {
    padding: 5rem 0;
    background: var(--white);
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.artist-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.artist-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.artist-image {
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.artist-placeholder {
    font-size: 5rem;
    color: var(--white);
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.artist-info {
    padding: 2rem;
}

.artist-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.artist-nationality,
.artist-birth {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.artist-description {
    margin: 1.5rem 0;
    line-height: 1.8;
    color: var(--text-color);
}

/* ===========================
   Artworks Section
   =========================== */
.artworks-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Noto Sans KR', sans-serif;
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.filter-btn.active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.artworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.artwork-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.artwork-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.artwork-image {
    width: 100%;
    height: 300px;
    background: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.artwork-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artwork-placeholder {
    color: var(--dark-gray);
    font-size: 3rem;
}

.artwork-info {
    padding: 1.5rem;
}

.artwork-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.artwork-artist {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.artwork-details p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.artwork-price {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--medium-gray);
}

.price-label {
    font-size: 0.85rem;
    color: var(--dark-gray);
    display: block;
    margin-bottom: 0.3rem;
}

.price-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

/* ===========================
   About Section
   =========================== */
.about-section {
    padding: 5rem 0;
    background: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.about-text p {
    line-height: 1.9;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.company-info {
    margin-top: 3rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 10px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 0.3rem;
}

.info-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.info-item p {
    margin: 0;
    color: var(--text-color);
}

/* ===========================
   Contact Section
   =========================== */
.contact-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 0.3rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form .btn-primary {
    width: 100%;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.admin-link:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
}

.admin-link i {
    font-size: 0.9rem;
}

/* ===========================
   Modal
   =========================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-content {
    position: relative;
    max-width: 1100px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-image {
    background: var(--medium-gray);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 3rem;
}

.modal-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal-artist {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.modal-details {
    margin-bottom: 2rem;
}

.modal-details p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.modal-prices {
    margin-bottom: 2rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 5px;
}

.price-krw {
    font-size: 1.4rem;
}

.btn-inquiry {
    width: 100%;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .header .container {
        padding: 0 1.5rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav {
        display: none;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .artists-grid {
        grid-template-columns: 1fr;
    }

    .artworks-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-info {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0 1rem;
    }

    .header {
        padding: 1rem 0;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo-subtitle {
        font-size: 0.75rem;
    }

    .artworks-grid {
        grid-template-columns: 1fr;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}
