/* ==========================================================================
   Alfred Ortega - Sidebar Navigation Layout
   ========================================================================== */

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ==========================================================================
   Main Layout Container
   ========================================================================== */

.site-container {
    display: flex;
    min-height: 100vh;
}

/* ==========================================================================
   Sidebar Navigation (Desktop)
   ========================================================================== */

.sidebar {
    width: 33.333%;
    background-color: #fff;
    border-right: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 80px 30px 40px 30px;
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Wrapper keeps all nav content together and aligned */
.nav-wrapper {
    text-align: left;
}

.sidebar-header {
    margin-bottom: 40px;
}

.nav-menu {
    list-style: none;
}

.site-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #999;
    text-decoration: none;
    display: block;
}

.site-title:hover {
    color: #bbb;
}

/* Navigation Menu */
.nav-item {
    margin-bottom: 8px;
}

/* Extra space before Biography to separate from galleries */
.nav-item:last-child {
    margin-top: 60px !important;
}

.bio-separator {
    margin-top: 30px !important;
}

.nav-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    transition: color 0.2s;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
    color: #222;
}

/* Social Icons */
.social-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
    width: 100%;
}

.social-icons a {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icons a:hover {
    color: #222;
}

.social-icons i {
    font-size: 20px;
    width: 20px;
    text-align: center;
}

.saatchi-icon {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.social-icons a:hover .saatchi-icon {
    opacity: 1;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.main-content {
    margin-left: 33.333%;
    flex: 1;
    padding: 40px 60px;
    width: 66.666%;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    color: #999;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Biography Page Styles
   ========================================================================== */

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

.bio-section {
    margin-bottom: 60px;
}

.bio-image {
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
    max-width: 300px;
    height: auto;
}

.bio-text {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.bio-text p {
    margin-bottom: 20px;
}

.bio-subtitle {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #999;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bio-section-title {
    font-size: 14px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Clear floats after bio section */
.bio-section::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

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

.contact-section {
    margin-bottom: 60px;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.contact-section p {
    margin-bottom: 15px;
}

.contact-subtitle {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
    text-align: left;
}

.contact-link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #222;
}

/* ==========================================================================
   Home Page Featured Section
   ========================================================================== */

.home-featured {
    display: flex;
    flex-direction: column;
    gap: 100px;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   Gallery Grid - Single Column
   ========================================================================== */
.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-bottom: 50px;
    max-width: 800px; /* Adjust this to control image width */
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    text-align: left;
    width: 100%;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 0 8px 0;
}

.artwork-title {
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    color: #777;
    display: inline;
    margin: 0;
}

.artwork-details {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: inline;
}

/* Space separator between title and details */
.artwork-title::after {
    content: "   ";
    white-space: pre;
}

/* ==========================================================================
   Mobile Hamburger Menu
   ========================================================================== */

.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2000;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    width: 45px;
    height: 45px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #222;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
    .sidebar {
        width: 33.333%;
        padding: 30px 20px;
    }
    
    .main-content {
        margin-left: 33.333%;
        width: 66.666%;
        padding: 30px 40px;
    }
    
    .gallery-grid {
        gap: 40px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    /* Fixed mobile header bar */
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: #fff;
        border-bottom: 1px solid #e0e0e0;
        z-index: 1999;
    }
    
    /* Mobile site title in header - aligned with hamburger center */
    body::after {
        content: "ALFRED ORTEGA";
        position: fixed;
        top: 24px;
        left: 75px;
        z-index: 2001;
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 2px;
        color: #999;
        line-height: 1;
    }
    
    .hamburger {
        display: flex;
        background: transparent;
        border: none;
        top: 10px !important;
        left: 20px;
        transform: none;
    }
    
    .mobile-overlay {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    /* Add space at top of nav on mobile */
    .nav-wrapper {
        padding-top: 80px;
    }
    
    /* Hide the sidebar header on mobile - title is in top bar */
    .sidebar-header {
        display: none;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 80px 20px 40px 20px;
    }
    
    .gallery-grid {
        gap: 40px;
    }
    
    .gallery-title {
        font-size: 24px;
    }
}

/* Very small mobile devices */
@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        padding: 60px 25px 40px 25px;
    }
    
    .main-content {
        padding: 70px 15px 30px 15px;
    }
    
    .site-title {
        font-size: 18px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .sidebar,
    .hamburger,
    .mobile-overlay {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 0;
    }
}