/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --light-bg: #fafafa;
    --white: #fff;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* Header styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    justify-self: start;
}

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

/* Navigation */
nav {
    justify-self: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    width: 100%;
    align-items: center;
}

.nav-links .merch-link {
    margin-left: auto;
}

.nav-links .merch-link a {
    color: var(--accent-color);
    border: 1.5px solid var(--accent-color);
    border-radius: 20px;
    padding: 0.4em 1.2em;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.nav-links .merch-link a:hover {
    background: var(--accent-color);
    color: #fff;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
}

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

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

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.hamburger {
    width: 24px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
    transform-origin: left center;
}

/* X animation states */
.mobile-menu-btn.active .hamburger span:first-child {
    transform: rotate(45deg);
    width: 28px;
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger span:last-child {
    transform: rotate(-45deg);
    width: 28px;
}

/* Footer styles */
footer {
    background-color: var(--white);
    padding: 2rem 2rem 2rem;
    margin-top: 6rem;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-section {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-section:first-child {
    justify-self: start;
}

.footer-section:last-child {
    justify-self: end;
}

.footer-section h3 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 1.3rem;
}

.footer-section p {
    margin: 0;
    line-height: 1.4;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.footer-email {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.25rem;
}

.footer-bottom {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Main content */
main {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Home page */
.hero {
    text-align: center;
    padding: 6rem 0;
}

.welcome-text {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.intro-text {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.featured-text {
    font-style: italic;
    color: #666;
    max-width: 700px;
    margin: 2rem auto;
}

/* About page */
.about-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.about-section h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.about-section .main-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 3rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.quote {
    position: relative;
    border-left: none;
    padding: 2rem 3rem;
    margin: 3rem 0;
    font-style: italic;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-family: var(--font-serif);
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--primary-color);
    text-align: center;
}

.quote::before,
.quote::after {
    content: '"';
    position: absolute;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.quote::before {
    top: 1rem;
    left: 1rem;
}

.quote::after {
    bottom: -1rem;
    right: 1rem;
}

.details-list {
    list-style: none;
    margin: 3rem auto;
    max-width: 600px;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.details-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    padding-left: 2rem;
    transition: transform 0.3s ease;
}

.details-list li:last-child {
    border-bottom: none;
}

.details-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.4rem;
    line-height: 1;
}

.details-list li:hover {
    transform: translateX(10px);
}

/* Mobile adjustments for about page */
@media (max-width: 768px) {
    .about-section {
        padding: 1rem;
    }

    .about-section h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .about-section .main-content {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .quote {
        padding: 1.5rem 2rem;
        font-size: 1.2rem;
        margin: 2rem 0;
    }

    .quote::before,
    .quote::after {
        font-size: 3rem;
    }

    .details-list {
        padding: 1.5rem;
        margin: 2rem auto;
    }

    .details-list li {
        font-size: 1rem;
        padding: 0.75rem 0 0.75rem 1.5rem;
    }
}

/* Gallery */
.gallery-content {
    max-width: 1400px;
    margin: 80px auto 0;
    padding: 4rem 2rem;
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 1rem;
}

.gallery-header h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
}

.gallery-header h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.gallery-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 3rem;
    padding: 1rem;
}

.gallery-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: var(--white);
    transition: all 0.4s ease;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    backdrop-filter: blur(5px);
}

.image-caption h3 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 0;
}

.gallery-item:hover .image-caption {
    transform: translateY(0);
}

.zoom-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .zoom-hint {
    opacity: 1;
}

.price {
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 0.5rem;
}

.size {
    font-size: 0.9rem;
    color: #666;
}

/* Mobile adjustments for gallery */
@media (max-width: 768px) {
    .gallery-content {
        padding: 2rem 1rem;
        margin-top: 60px;
    }

    .gallery-header {
        margin-bottom: 2rem;
        padding: 1rem;
    }

    .gallery-header h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .gallery-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-item {
        height: 300px;
    }

    .image-caption {
        padding: 1rem;
    }

    .image-caption h3 {
        font-size: 1.2rem;
    }

    .zoom-hint {
        display: none;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease-in-out;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger the animation of menu items */
    .nav-links a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links a:nth-child(4) { transition-delay: 0.4s; }
    .nav-links a:nth-child(5) { transition-delay: 0.5s; }
    .nav-links a:nth-child(6) { transition-delay: 0.6s; }

    .hero {
        padding: 3rem 0;
    }

    .welcome-text {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section {
        align-items: center;
        text-align: center;
    }

    .footer-section:first-child,
    .footer-section:last-child {
        justify-self: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    footer::before {
        width: 60px;
    }

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

    .header-content {
        display: flex;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .nav-links .merch-link {
        margin-left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
    }
    .nav-links .merch-link a {
        font-size: 1.5rem;
        padding: 0.5em 1.5em;
        border-width: 1px;
        border-radius: 18px;
        font-weight: 600;
        margin: 0;
        box-shadow: none;
    }
}

/* Contact page styles */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: #666;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-sans);
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.submit-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Contact form status messages */
.message-status {
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    display: none;
}

.message-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading state for submit button */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .contact-section {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Admin Gallery Management */
.gallery-upload {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.admin-gallery-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.admin-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.image-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.image-details input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.save-image-details,
.delete-image {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.save-image-details {
    background: var(--accent-color);
    color: white;
}

.delete-image {
    background: #dc3545;
    color: white;
}

/* Admin Dashboard Styles */
.admin-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 80px auto 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.admin-header h2 {
    color: var(--primary-color);
    font-family: var(--font-serif);
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user-info span {
    color: #666;
}

.content-section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.content-section h3 {
    color: var(--primary-color);
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.edit-field {
    background: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    border: 1px solid #eee;
}

.edit-field label {
    display: block;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.edit-field textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

.edit-field textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.save-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.save-btn:hover {
    background-color: #2980b9;
}

/* Gallery Management Section */
.gallery-upload {
    background: #f8f9fa;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 6px;
    border: 1px solid #eee;
}

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

.gallery-upload label {
    display: block;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.gallery-upload input[type="file"] {
    display: block;
    width: 100%;
    padding: 1rem;
    background: white;
    border: 2px dashed #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.gallery-upload input[type="file"]:hover {
    border-color: var(--accent-color);
}

.gallery-upload input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.gallery-management h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.admin-gallery-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.admin-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.image-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.image-details input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.image-details button {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.save-image-details {
    background: var(--accent-color);
    color: white;
}

.save-image-details:hover {
    background: #2980b9;
}

.delete-image {
    background: #dc3545;
    color: white;
}

.delete-image:hover {
    background: #c82333;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .content-section {
        padding: 1.5rem;
    }

    .edit-field {
        padding: 1rem;
    }

    .admin-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Illustrations page styles */
.illustrations-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.illustrations-section h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.illustrations-section .main-content {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    text-align: center;
}

.experience-section,
.services-section {
    margin-top: 3rem;
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.experience-section h3,
.services-section h3 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.experience-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.services-list {
    list-style: none;
    margin: 2rem auto 0;
    max-width: 600px;
}

.services-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    transition: transform 0.3s ease;
}

.services-list li:hover {
    transform: translateX(10px);
}

.services-list li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.4rem;
}

/* Mobile adjustments for illustrations page */
@media (max-width: 768px) {
    .illustrations-section {
        padding: 1rem;
    }

    .illustrations-section h2 {
        font-size: 2rem;
    }

    .experience-section,
    .services-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .services-list li {
        padding: 0.75rem 0 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* About page profile image styles */
.profile-image-container {
    width: 300px;
    height: 300px;
    margin: 0 auto 3rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

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

.profile-image:hover {
    transform: scale(1.05);
}

/* Admin dashboard profile image management */
.profile-image-management {
    background: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border: 1px solid #eee;
}

.profile-image-management h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.current-profile-image {
    margin-bottom: 1.5rem;
    text-align: center;
}

.current-profile-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.delete-profile-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-profile-btn:hover {
    background: #c82333;
}

@media (max-width: 768px) {
    .profile-image-container {
        width: 200px;
        height: 200px;
    }
}

/* Illustration image styles */
.illustration-images-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto;
}

.illustration-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}

.illustration-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Admin dashboard illustration image management */
.illustration-image-management {
    background: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border: 1px solid #eee;
}

.illustration-image-slot {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
}

.illustration-image-slot h5 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.current-illustration-image {
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.delete-illustration-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-illustration-btn:hover {
    background: #c82333;
}

@media (max-width: 768px) {
    .illustration-images-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Books section styles */
.books-section {
    margin: 4rem 0;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.books-section h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.book-feature {
    margin-bottom: 4rem;
}

.book-feature h4 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.book-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 1rem;
}

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

.book-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-cover {
    width: 200px;
    height: auto;
    border-radius: 4px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.book-details {
    flex: 1;
}

.book-details p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.book-link {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.book-link:hover {
    background-color: #2980b9;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .book-content {
        flex-direction: column;
        text-align: center;
    }

    .book-cover {
        width: 180px;
    }

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

/* Book management styles */
.main-book-management,
.partner-books-management {
    background: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border: 1px solid #eee;
}

.current-book-image {
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.partner-book-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.delete-partner-book {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
}

.delete-partner-book:hover {
    background: #c82333;
}

#add-partner-book {
    margin-top: 1rem;
    width: 100%;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox img {
    max-height: 80vh;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.lightbox-details {
    color: white;
    text-align: center;
    margin-top: 1rem;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .zoom-hint {
        display: none;
    }
    
    .lightbox-content {
        width: 95%;
    }

    .lightbox img {
        transform-origin: center;
        transform: scale(2);
    }
}

/* Price range inputs in admin */
.price-range {
    margin-bottom: 1rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-separator {
    color: #666;
    font-weight: bold;
}

.image-price-min,
.image-price-max {
    width: calc(50% - 1rem);
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
} 