/**
 * ArtistSea - Portfolio Theme CSS
 * Multi-page portfolio template with separate Home, Gallery, About, CV pages
 */

@import url('./website_common.css');
 
/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    font-size: calc(1rem * var(--font-body-scale, 1));
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navigation */
.site-nav {
    background: #fff;
    padding: 1rem 0;
}

.site-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: calc(1.25rem * var(--font-brand-scale, 1));
    color: #333;
    text-decoration: none;
    letter-spacing: 0.02em;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.nav-menu a {
    color: #555;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #222;
}

.nav-menu a.active {
    color: var(--accent-color);
    font-weight: 500;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* Footer */
.site-footer {
    background: #f8f9fa;
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    color: var(--accent-color);
    font-size: 1.5rem;
    transition: opacity 0.2s, transform 0.2s;
}

.footer-social a:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

.footer-info {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.footer-info a {
    color: #666;
    text-decoration: none;
}

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

/* Preview banner */
.preview-banner {
    background: #fff3cd;
    color: #856404;
    padding: 0.75rem;
    text-align: center;
}

.preview-banner a {
    color: #856404;
    font-weight: 500;
}

/* Page header */
.page-header {
    padding: 1.5rem 0 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 300;
    margin: 0;
    letter-spacing: 0.05em;
}

/* Section spacing */
.section {
    padding: 3rem 0;
}

/* Gallery Styles */
.gallery-section {
    padding: 2rem 0 4rem;
}

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

.gallery-masonry {
    columns: 3 280px;
    column-gap: 1.5rem;
    padding: 0 1rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover img {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Artwork Info */
.artwork-info {
    padding: 0.75rem 0;
}

.artwork-title {
    font-weight: 500;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
}

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

.artwork-meta {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.25rem;
}

.artwork-price {
    font-weight: 500;
    color: var(--accent-color);
}

/* About Page Styles */
.about-section {
    padding: 3rem 0;
}

.artist-statement {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* CV Page Styles - Two Column Layout */
.cv-section {
    padding: 2rem 0 4rem;
}

.cv-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 60vh;
}

/* CV Sidebar */
.cv-sidebar {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.cv-photo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.cv-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cv-name {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 0.5rem;
    color: #333;
    display: none; /* Show only in print */
}

.cv-location {
    text-align: left;
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
}

.cv-location i {
    color: var(--accent-color);
    margin-right: 0.25rem;
}

.print-only {
    display: none; /* Hides the text on the web page */
}

/* Styles for print display */
@media print {
    .print-only {
        display: block;
    }
}


.cv-contact h3,
.cv-social h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin: 0 0 0.75rem;
}

.cv-contact p {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cv-contact i {
    color: var(--accent-color);
    width: 16px;
    text-align: center;
}

.cv-contact a {
    color: #555;
    text-decoration: none;
    word-break: break-all;
}

.cv-contact a:hover {
    color: var(--accent-color);
}

.cv-contact a.reveal-contact {
    color: var(--accent-color);
    font-style: italic;
    cursor: pointer;
}

.cv-contact a.reveal-contact:hover {
    text-decoration: underline;
}

.cv-social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cv-social-links a {
    color: #666;
    font-size: 1.25rem;
    transition: color 0.2s, transform 0.2s;
}

.cv-social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* CV Content */
.cv-content {
    padding: 0 1rem;
}

/* Contact Section */
.contact-section {
    padding: 3rem 0;
    text-align: center;
}

.contact-section h2 {
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.contact-info a {
    color: var(--accent-color);
}

.contact-info a.reveal-contact {
    font-style: italic;
    cursor: pointer;
}

.contact-info a.reveal-contact:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .form-label {
    font-weight: 500;
    color: #333;
}

.contact-form .form-control {
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.contact-form .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.05);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-accent {
    padding: 0.75rem 2.5rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-form .btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-form .btn-accent:disabled {
    opacity: 0.7;
    transform: none;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

/* =============================================
   HOME PAGE STYLES
   ============================================= */

/* Carousel Section */
.carousel-section {
    background: transparent;
    margin: 2rem 0 4rem;
}

.carousel-section .carousel {
    max-height: 80vh;
}

.carousel-section .carousel-inner {
    max-height: 80vh;
}

.carousel-section .carousel-item {
    max-height: 80vh;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.carousel-section .carousel-link {
    display: block;
    position: relative;
    height: 100%;
}

.carousel-section .carousel-item img {
    width: 100%;
    height: 80vh;
    object-fit: contain;
}

.carousel-section .carousel-no-image {
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #444;
    font-size: 5rem;
}

/* Custom caption styling */
.carousel-caption-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    text-align: center;
    color: #fff;
}

.carousel-caption-custom h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 0.5rem;
    letter-spacing: 0.02em;
}

.carousel-caption-custom .meta {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Carousel controls */
.carousel-section .carousel-control-prev,
.carousel-section .carousel-control-next {
    width: 60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.carousel-section .carousel:hover .carousel-control-prev,
.carousel-section .carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-section .carousel-control-prev-icon,
.carousel-section .carousel-control-next-icon {
    background-color: transparent;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    background-size: 40%;
}

.carousel-section .carousel-control-prev-icon:hover,
.carousel-section .carousel-control-next-icon:hover {
    background-color: var(--accent-color);
    opacity: 0.2;
}

.carousel-section .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-section .carousel-control-prev-icon:hover {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-section .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.carousel-section .carousel-control-next-icon:hover {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Carousel indicators */
.carousel-section .carousel-indicators {
    margin-bottom: 1rem;
}

.carousel-section .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 4px;
}

.carousel-section .carousel-indicators button.active {
    background-color: var(--accent-color);
}

/* Hero info below carousel */
.carousel-hero-info {
    padding: 2rem 0;
    text-align: center;
}

.hero-headline {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.hero-location {
    font-size: 0.95rem;
    color: #888;
    margin: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 2rem 0 3rem;
}

.cta-section .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

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

/* No featured artworks */
.no-featured {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-featured i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

/* =============================================
   GALLERY PAGE STYLES
   ============================================= */

.gallery-item img {
    border-radius: 4px;
}

/* Pagination */
.pagination .page-link {
    color: var(--accent-color);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Empty state */
.empty-gallery {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-gallery i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1.5rem;
}

/* =============================================
   ABOUT PAGE STYLES
   ============================================= */

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

.artist-photo {
    text-align: center;
    margin-bottom: 2rem;
}

.artist-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.artist-statement {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 3rem;
}

.artist-statement p {
    margin-bottom: 1.5rem;
}

/* Contact Section (About Page) */
.contact-section h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-info i {
    width: 24px;
    color: var(--accent-color);
}

/* Empty state */
.empty-about {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-about i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1.5rem;
}

/* =============================================
   CV PAGE STYLES
   ============================================= */

.cv-text {
    font-size: calc(0.95rem * var(--font-body-scale, 1));
    line-height: 1.8;
    color: #444;
    white-space: pre-line;
    font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

.cv-text p {
    margin-bottom: 1rem;
}

/* Print button */
.print-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* =============================================
   ARTWORK DETAIL PAGE STYLES
   ============================================= */

.artwork-detail {
    padding: 2rem 0 4rem;
}

.artwork-container {
    max-width: 1000px;
    margin: 0 auto;
}

.artwork-image {
    text-align: center;
    margin-bottom: 2rem;
}

.artwork-image img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    cursor: zoom-in;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.artwork-info-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

.artwork-title-main {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-align: center;
}

.artwork-year {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.artwork-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.artwork-spec {
    text-align: center;
}

.artwork-spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 0.25rem;
}

.artwork-spec-value {
    font-size: 0.95rem;
    color: #333;
}

.artwork-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
}

.artwork-price-section {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.artwork-price-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.artwork-price-value {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent-color);
}

.artwork-sold {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.artwork-contact-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

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

/* Artwork Navigation */
.artwork-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 700px;
    margin: 3rem auto 0;
    padding: 1.5rem 1rem;
    border-top: 1px solid #eee;
}

.artwork-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

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

.back-to-gallery {
    font-weight: 500;
}

/* =============================================
   PRINT STYLES
   ============================================= */

@media print {
    .site-nav,
    .site-footer,
    .preview-banner,
    .print-btn {
        display: none !important;
    }

    .page-header {
        padding: 1rem 0;
        background: none;
        border-bottom: 2px solid #333;
    }

    .cv-section {
        padding: 1rem 0;
    }

    .cv-layout {
        grid-template-columns: 200px 1fr;
        gap: 2rem;
    }

    .cv-sidebar {
        background: none;
        padding: 0;
        position: static;
    }

    .cv-photo img {
        width: 120px;
        height: 120px;
        box-shadow: none;
        border: 2px solid #333;
    }

    .cv-name {
        display: block;
    }

    .cv-social-links a {
        color: #333;
    }

    .cv-text {
        font-size: 11pt;
        line-height: 1.5;
    }
}

/* =============================================
   RESPONSIVE STYLES
   ============================================= */

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid #eee;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.show {
        display: flex;
    }

    .site-nav .container {
        position: relative;
    }

    .gallery-masonry {
        columns: 2 200px;
    }

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

    .page-header h1 {
        font-size: 1.5rem;
    }

    /* Carousel responsive */
    .carousel-section .carousel,
    .carousel-section .carousel-inner,
    .carousel-section .carousel-item {
        max-height: 50vh;
    }

    .carousel-section .carousel-item img {
        height: 50vh;
    }

    .carousel-section .carousel-no-image {
        height: 50vh;
        font-size: 3rem;
    }

    .carousel-caption-custom {
        padding: 1rem;
    }

    .carousel-caption-custom h3 {
        font-size: 1.1rem;
    }

    .carousel-caption-custom .meta {
        font-size: 0.85rem;
    }

    .carousel-section .carousel-control-prev,
    .carousel-section .carousel-control-next {
        width: 40px;
        opacity: 1;
    }

    .carousel-section .carousel-control-prev-icon,
    .carousel-section .carousel-control-next-icon {
        width: 32px;
        height: 32px;
    }

    .carousel-hero-info {
        padding: 1.5rem 1rem;
    }

    .hero-headline {
        font-size: 1rem;
    }

    /* CV responsive */
    .cv-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cv-sidebar {
        position: static;
        text-align: center;
    }

    .cv-contact p {
        justify-content: center;
    }

    .cv-social-links {
        justify-content: center;
    }

    .cv-website p {
        justify-content: center;
    }

    .cv-content {
        padding: 0;
    }

    .artwork-title-main {
        font-size: 1.5rem;
    }

    .artwork-specs {
        grid-template-columns: 1fr 1fr;
    }
}
