/*
Theme Name: Yo! I'm Bo
Theme URI: https://yoimbo.com
Author: Bo Spasic
Author URI: https://yoimbo.com
Description: Custom portfolio theme matching Figma design
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yoimbo
*/

/* 
===========================================
Base Styles & Reset
===========================================
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #ffffff;
    --text-color: #000000;
    --border-color: #000000;
    --accent-shadow: #000000;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--primary-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* 
===========================================
Layout Structure
===========================================
*/

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

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

.site-sidebar {
    width: 320px;
    background: var(--primary-bg);
    padding: 40px 30px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.site-header {
    margin-bottom: 60px;
}

.site-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.site-description {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0;
}

.site-description br {
    display: block;
}

/* Horizontal dividers */
.nav-divider {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin: 30px 0;
}

/* Main Navigation */
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation li {
    margin-bottom: 12px;
}

.main-navigation a {
    font-size: 16px;
    font-weight: 400;
    display: block;
    padding: 4px 0;
    transition: opacity 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a.current {
    opacity: 0.6;
}

/* Bottom Navigation */
.bottom-navigation {
    margin-top: auto;
    padding-top: 30px;
}

.bottom-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bottom-navigation li {
    margin-bottom: 12px;
}

.bottom-navigation a {
    font-size: 16px;
    font-weight: 600;
    display: block;
    transition: opacity 0.2s ease;
}

.bottom-navigation a:hover {
    opacity: 0.6;
}

/* 
===========================================
Mobile Menu Toggle
===========================================
*/

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    display: block;
    transition: all 0.3s ease;
}

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

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

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

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

.site-main {
    margin-left: 320px;
    width: calc(100% - 320px);
    padding: 60px 80px;
}

/* 
===========================================
Homepage Hero
===========================================
*/

.hero-section {
    width: 100%;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 
===========================================
Content Boxes (About, Contact)
===========================================
*/

.content-box {
    border: 8px solid var(--border-color);
    background: var(--primary-bg);
    padding: 60px;
    position: relative;
    margin-bottom: 40px;
}

.content-box::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 100%;
    height: 100%;
    background: var(--accent-shadow);
    z-index: -1;
}

.content-box h1,
.content-box h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
}

.content-box p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-box .contact-link {
    font-size: 20px;
    font-weight: 700;
    text-decoration: underline;
    display: inline-block;
    margin-top: 20px;
}

/* 
===========================================
Project Single Page
===========================================
*/

.project-header {
    margin-bottom: 60px;
}

.project-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.project-meta {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.project-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.project-content {
    font-size: 16px;
    line-height: 1.8;
}

.project-content p {
    margin-bottom: 20px;
}

.project-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 20px;
}

.project-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px;
}

.project-content img {
    margin: 40px 0;
    width: 100%;
    height: auto;
}

.project-content .wp-block-image {
    margin: 40px 0;
}

.project-content .wp-block-gallery {
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-content .wp-block-video {
    margin: 40px 0;
}

.project-content video {
    width: 100%;
    height: auto;
}

/* 
===========================================
Tablet Styles (768px - 1024px)
===========================================
*/

@media screen and (max-width: 1024px) {
    .site-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .site-sidebar.active {
        transform: translateX(0);
    }

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

    .site-main {
        margin-left: 0;
        width: 100%;
        padding: 80px 40px 40px;
    }

    .site-title {
        font-size: 36px;
    }

    .site-description {
        font-size: 20px;
    }

    .content-box {
        padding: 40px;
    }

    .content-box::after {
        bottom: -8px;
        right: -8px;
    }

    .project-title {
        font-size: 36px;
    }
}

/* 
===========================================
Mobile Styles (< 768px)
===========================================
*/

@media screen and (max-width: 767px) {
    .site-sidebar {
        width: 100%;
        padding: 30px 20px;
    }

    .site-main {
        padding: 80px 20px 40px;
    }

    .site-title {
        font-size: 32px;
    }

    .site-description {
        font-size: 18px;
    }

    .hero-section {
        min-height: auto;
    }

    .content-box {
        border: 6px solid var(--border-color);
        padding: 30px 20px;
    }

    .content-box::after {
        bottom: -6px;
        right: -6px;
    }

    .content-box h1,
    .content-box h2 {
        font-size: 24px;
    }

    .project-title {
        font-size: 28px;
    }

    .project-content h2 {
        font-size: 24px;
    }

    .project-content h3 {
        font-size: 20px;
    }

    .project-content .wp-block-gallery {
        grid-template-columns: 1fr;
    }
}

/* 
===========================================
Utility Classes
===========================================
*/

.screen-reader-text {
    position: absolute;
    left: -9999px;
}
