/*
Theme Name: Modern Sidebar
Description: A clean, minimal WordPress theme with a fixed sidebar navigation. Simple white design with focus on typography and navigation.
Version: 1.0.0
Author: Custom Theme
Text Domain: modern-sidebar
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout Structure */
.site-wrapper {
    display: flex;
    min-height: 100vh;
    background: #ffffff;
}

/* Fixed Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    color: #333;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
    border-right: 1px solid #e5e5e5;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 0 40px 40px 40px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 40px;
}

.site-logo img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.site-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    text-decoration: none;
    line-height: 1.2;
}

.site-description {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    line-height: 1.4;
}

.site-description a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-description a:hover {
    color: #0073aa;
    text-decoration: underline;
}

/* Navigation Menu */
.sidebar-nav {
    padding: 0 40px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.current-menu-item {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Image Menu Icons */
.sidebar-nav a img {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

/* Hover GIF Support */
.sidebar-nav a:hover img {
    transform: scale(1.1);
}

/* Specific styling for image-only menu items */
.sidebar-nav a.image-only {
    padding: 16px 0;
    text-align: center;
}

.sidebar-nav a.image-only img {
    margin-right: 0;
    width: 32px;
    height: 32px;
}

.sidebar-nav a.image-only:hover img {
    transform: scale(1.15);
}

/* Social media menu styling */
.sidebar-nav .social-menu a {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.sidebar-nav .social-menu a img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding: 40px 40px 0 40px;
    border-top: 1px solid #f0f0f0;
}

.sidebar-footer-content {
    text-align: left;
}

.sidebar-footer p {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    line-height: 1.4;
}

.sidebar-footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-footer a:hover {
    color: #2563eb;
}

/* Social Media Menu */
.social-menu {
    margin-bottom: 20px;
}

.social-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-menu-list li {
    margin: 0;
    padding: 0;
}

.social-menu-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    position: relative;
}

/* Hide text and show icons */
.social-menu-list a {
    font-size: 0;
}

.social-menu-list a:before {
    font-size: 18px;
    font-weight: bold;
}

/* Instagram Icon */
.social-menu-list a[href*="instagram.com"]:before {
    content: "IG";
    color: #E4405F;
}

/* Vimeo Icon */
.social-menu-list a[href*="vimeo.com"]:before {
    content: "V";
    color: #1ab7ea;
}

/* Twitter Icon */
.social-menu-list a[href*="twitter.com"]:before,
.social-menu-list a[href*="x.com"]:before {
    content: "X";
    color: #000000;
}

/* Facebook Icon */
.social-menu-list a[href*="facebook.com"]:before {
    content: "f";
    color: #1877F2;
}

/* YouTube Icon */
.social-menu-list a[href*="youtube.com"]:before {
    content: "YT";
    color: #FF0000;
}

.social-menu-list a:hover {
    background: #0073aa;
    color: #fff;
    transform: translateY(-2px);
}

.sidebar-footer-menu {
    margin: 16px 0;
}

.sidebar-footer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-footer-menu li {
    margin: 0;
    padding: 0;
}

.sidebar-footer-menu a {
    display: block;
    padding: 4px 0;
    font-size: 12px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-footer-menu a:hover {
    color: #2563eb;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 60px 60px 60px 60px;
    max-width: calc(100% - 280px);
    background: #ffffff;
}

/* Header */
.site-header {
    background: #ffffff;
    padding: 0 0 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.site-header h1 {
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.site-header p {
    color: #666;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

/* Content Styling */
.content-area {
    background: #ffffff;
    padding: 0;
    margin-bottom: 40px;
}

.entry-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.2;
}

.entry-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 40px 0 20px 0;
    color: #333;
    font-weight: 600;
    line-height: 1.2;
}

.entry-content h2 {
    font-size: 24px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 8px;
}

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

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

.entry-content a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.entry-content a:hover {
    border-bottom-color: #2563eb;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #1d4ed8;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile Footer Menu */
.mobile-footer-menu {
    display: none;
}

.mobile-menu-trigger {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 1000;
    padding: 0;
}

.mobile-menu-button {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-menu-button:hover {
    background-color: #f5f5f5;
}

.mobile-menu-button svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.open .mobile-menu-content {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-site-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-site-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.mobile-site-title h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.mobile-site-title p {
    font-size: 14px;
    color: #666;
    margin: 4px 0 0 0;
}

.mobile-site-title a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-site-title a:hover {
    color: #0073aa;
}

.mobile-menu-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: #f5f5f5;
}

.mobile-menu-close svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-nav {
    padding: 20px;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    margin: 0;
    padding: 0;
}

.mobile-nav-menu a {
    display: block;
    padding: 16px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.mobile-nav-menu a:hover {
    color: #0073aa;
}

.mobile-nav-menu li:last-child a {
    border-bottom: none;
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.mobile-copyright {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0 !important;
        max-width: 100% !important;
        padding: 40px 20px;
        padding-bottom: 80px; /* Space for mobile menu */
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-footer-menu {
        display: block;
    }
    
    .site-header h1 {
        font-size: 28px;
    }
    
    /* Remove sidebar-related padding on mobile */
    .film-container {
        padding: 0;
    }
    
    .films-archive {
        padding: 0;
    }
    
    .films-showcase {
        padding: 0;
    }
}

@media (min-width: 769px) {
    .mobile-footer-menu {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px;
    }
    
    .entry-title {
        font-size: 24px;
    }
}


/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 40px;
}

.mt-2 {
    margin-top: 40px;
}

/* WordPress Specific Styles */
.wp-caption {
    max-width: 100%;
    margin: 20px 0;
}

.wp-caption img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto 20px auto;
}

/* Code and Preformatted */
code {
    background: #f8f8f8;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    color: #333;
}

pre {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #e5e5e5;
}

pre code {
    background: none;
    padding: 0;
    font-size: 14px;
}

/* Blockquotes */
blockquote {
    border-left: 3px solid #2563eb;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 4px;
}
