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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #F5F5F5;
    color: #1A1A1A;
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    color: #1A1A1A;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

a {
    color: #4A90E2;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #D4A017;
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Navigation */
#top-nav {
    background-color: #1A1A1A;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

#top-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

#top-nav li a {
    color: #F5F5F5;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
}

#top-nav li a:hover, #top-nav li a:focus {
    color: #D4A017;
}

.hamburger {
    display: none;
    color: #F5F5F5;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Header */
header {
    text-align: center;
    padding: 2rem;
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Error and Success Messages */
.error, .success {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.error {
    background-color: #FFEBEE;
    color: #D32F2F;
}

.success {
    background-color: #E8F5E9;
    color: #388E3C;
}

/* Artist Bio Section */
#artist-bio {
    margin-bottom: 3rem;
}

.bio-image {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Contact Section */
#contact {
    margin-bottom: 3rem;
}

.contact-image {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Art Gallery Carousel */
#art-gallery {
    margin-bottom: 3rem;
}

#art-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 300px;
    margin-right: 20px;
    cursor: pointer;
    position: relative;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.carousel-caption {
    padding: 1rem;
    text-align: center;
    background-color: #FFFFFF;
}

.carousel-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.carousel-caption p {
    font-size: 1rem;
    color: #D4A017;
}

.carousel-item:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 80px;
    left: 10px;
    right: 10px;
    background-color: #2C2C2C;
    color: #FFFFFF;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 10;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333333;
    color: #F5F5F5;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 4px;
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.carousel-nav:hover, .carousel-nav:focus {
    background-color: #4A90E2;
    outline: 2px solid #D4A017;
}

/* Large View */
.large-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

#large-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
}

.large-caption {
    position: absolute;
    bottom: 20px;
    background-color: #FFFFFF;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    max-width: 80%;
}

.large-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.large-caption p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #D32F2F;
    color: #FFFFFF;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 4px;
}

.close-btn:hover, .close-btn:focus {
    background-color: #4A90E2;
    outline: 2px solid #D4A017;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333333;
    color: #F5F5F5;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 4px;
}

.nav-btn.prev {
    left: 20px;
}

.nav-btn.next {
    right: 20px;
}

.nav-btn:hover, .nav-btn:focus {
    background-color: #4A90E2;
    outline: 2px solid #D4A017;
}

/* Blog Post */
.blog-post {
    background-color: #FFFFFF;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-post-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.blog-post-video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Management Sections */
.management-toggle {
    margin-top: 1rem;
    cursor: pointer;
    color: #4A90E2;
}

.expand-icon {
    margin-right: 0.5rem;
}

.management-section {
    padding: 1rem;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.management-auth {
    margin-bottom: 1rem;
}

.management-controls {
    margin-top: 1rem;
}

.add-form, .edit-form {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #F5F5F5;
    border-radius: 8px;
}

.inline-form {
    display: inline-block;
    margin-left: 0.5rem;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="text"],
input[type="number"],
input[type="date"],
textarea,
select {
    padding: 0.5rem;
    border: 1px solid #1A1A1A;
    border-radius: 4px;
    font-size: 1rem;
}

input[type="file"] {
    padding: 0.5rem 0;
}

button, input[type="submit"] {
    background-color: #4A90E2;
    color: #F5F5F5;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover, button:focus,
input[type="submit"]:hover, input[type="submit"]:focus {
    background-color: #D4A017;
    outline: 2px solid #4A90E2;
}

.button-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #4A90E2;
    color: #F5F5F5;
    border-radius: 4px;
}

.button-link:hover, .button-link:focus {
    background-color: #D4A017;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #1A1A1A;
    color: #F5F5F5;
    margin-top: 2rem;
}

footer a {
    color: #4A90E2;
}

footer a:hover, footer a:focus {
    color: #D4A017;
}

/* Responsive Design */
@media (max-width: 768px) {
    #top-nav ul {
        display: none;
        flex-direction: column;
        background-color: #1A1A1A;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem;
    }

    #top-nav ul.active {
        display: flex;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .carousel-item {
        flex: 0 0 250px;
    }

    #large-image {
        max-width: 90%;
        max-height: 70%;
    }

    .large-caption {
        max-width: 90%;
    }
}

/* Accessibility Enhancements */
:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

.carousel-item:focus-within,
.carousel-nav:focus,
.nav-btn:focus,
.close-btn:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}
