/*
Theme Name: Indie Rock Simple
Theme URI: https://inspirationssoftwaredesign.com/indierock-simple
Author: Danny Kohn
Author URI: https://inspirationssoftwaredesign.com
Description: A simplified dark theme for indie rock bands, focusing on content without large hero images
Version: 1.1
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: indierock-simple
Tags: music, band, dark, minimal, one-column, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===========================
   CSS VARIABLES
   =========================== */
:root {
    --color-bg: #000000;
    --color-bg-secondary: #000000;
    --color-text: #e0e0e0;
    --color-text-muted: #999999;
    --color-accent: #41678b;
    --color-accent-hover: #400C07;
    --color-border: #400C07;
    --font-main: 'Helvetica Neue', Arial, sans-serif;
    --max-width: 1200px;
    --spacing: 20px;
    --sidebar-width: 280px;
}

/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* ===========================
   LAYOUT - Sidebar + Content
   =========================== */
.site {
    display: block;
    min-height: 100vh;
}

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

/* ===========================
   HEADER & NAVIGATION - LEFT SIDEBAR
   =========================== */
.site-header {
    background-color: var(--color-bg);
    border-right: 1px solid var(--color-border);
    padding: 40px 30px;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.header-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    height: 100%;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-title a {
    color: var(--color-text);
}

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

.site-description {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    z-index: 1001;
}

.menu-toggle:hover {
    background: var(--color-accent-hover);
}

/* Mobile Top Bar - Social Links */
.mobile-top-bar {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    max-width: calc(100% - 140px); /* Leave space for menu button */
}

.mobile-top-bar .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: none;
    justify-content: flex-end;
}

.mobile-top-bar .social-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.mobile-top-bar .social-links a {
    color: var(--color-text);
    font-size: 1.3rem;
    background: rgba(0, 0, 0, 0.8);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.mobile-top-bar .social-links a:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    border-bottom: none;
}

.main-navigation li:last-child {
    border-bottom: none;
}

.main-navigation a {
    color: var(--color-text);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 15px 0;
    display: block;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--color-accent);
    padding-left: 10px;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

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

.social-links a {
    color: var(--color-text-muted);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-accent);
}

/* ===========================
   MAIN CONTENT
   =========================== */
.site-content {
    margin-left: var(--sidebar-width);
    padding: 30px 80px;
    min-height: 100vh;
}

/* Page/Post Header */
.page-header,
.entry-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-title,
.entry-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.entry-meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.entry-meta a {
    color: var(--color-text-muted);
}

.entry-meta a:hover {
    color: var(--color-accent);
}

/* ===========================
   BLOG/NEWS POSTS
   =========================== */
.posts-list {
    display: grid;
    gap: 30px;
}

.post-item {
    background: transparent;
    border: none;
    padding: 0;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 30px;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item .entry-title {
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: left;
    border: none;
    padding: 0;
}

.post-item .entry-title a {
    color: var(--color-text);
}

.post-item .entry-title a:hover {
    color: var(--color-accent);
}

.post-item .entry-meta {
    margin-bottom: 20px;
    text-align: left;
}

.post-item .entry-content {
    color: var(--color-text);
    line-height: 1.8;
    font-size: 1.05rem;
}

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

.post-item .entry-content p:last-child {
    margin-bottom: 0;
}

.post-item .entry-content h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--color-accent);
}

.post-item .entry-content h3 {
    font-size: 1.3rem;
    margin: 25px 0 15px;
}

.post-item .entry-content ul,
.post-item .entry-content ol {
    margin: 20px 0;
    padding-left: 40px;
}

.post-item .entry-content li {
    margin-bottom: 10px;
}

.post-item .entry-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.post-item .entry-content a:hover {
    color: var(--color-accent-hover);
}

.more-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: var(--color-accent);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.more-link:hover {
    background: var(--color-accent-hover);
    color: white;
}

/* Featured Image */
.post-thumbnail {
    margin-bottom: 25px;
}

.post-thumbnail img {
    border-radius: 4px;
    width: 100%;
}

/* Single Post */
.single-post .entry-content {
    color: var(--color-text);
    line-height: 1.8;
    font-size: 1.1rem;
}

.single-post .entry-content h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--color-accent);
}

.single-post .entry-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 20px 0;
    padding-left: 40px;
}

.single-post .entry-content li {
    margin-bottom: 10px;
}

/* ===========================
   PAGINATION
   =========================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
}

.pagination a:hover,
.pagination .current {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 40px 80px;
    text-align: center;
    padding-left: calc(var(--sidebar-width) + 80px);
}

.footer-content {
    width: 100%;
}

.footer-content p {
    color: var(--color-text-muted);
    margin: 10px 0;
}

.footer-content a {
    color: var(--color-text-muted);
}

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

/* Footer Widgets */
.footer-widgets {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
}

.footer-widgets .widget {
    margin-bottom: 30px;
}

.footer-widgets .widget:last-child {
    margin-bottom: 0;
}

.footer-widgets .widget-title {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-widgets ul {
    list-style: none;
    padding: 0;
}

.footer-widgets li {
    margin-bottom: 8px;
}

.footer-widgets a {
    color: var(--color-text-muted);
}

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


/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1024px) {
    .site-content {
        padding: 40px 40px;
    }
    
    .site-footer {
        padding: 40px 40px;
        padding-left: calc(var(--sidebar-width) + 40px);
    }
}

@media (max-width: 768px) {
    .site {
        flex-direction: column;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Show mobile top bar with social links */
    .mobile-top-bar {
        display: flex;
    }
    
    /* Hide social links in sidebar on mobile */
    .site-header .social-links {
        display: none;
    }
    
    .site-header {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    }
    
    .site-header.toggled {
        left: 0;
    }
    
    .site-content {
        margin-left: 0;
        padding: 120px var(--spacing) 40px; /* Increased top padding for wrapped social icons */
    }
    
    .site-footer {
        margin-left: 0;
        padding: 40px var(--spacing);
        padding-left: var(--spacing);
    }
    
    .page-title,
    .entry-title {
        font-size: 2rem;
    }
    
    .post-item .entry-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-title,
    .entry-title {
        font-size: 1.5rem;
    }
    
    .post-item {
        padding-bottom: 40px;
    }
    
    .posts-list {
        gap: 60px;
    }
    
    .site-content {
        padding: 130px 20px 40px; /* Extra top padding for smaller screens */
    }
    
    .site-footer {
        padding: 40px 20px;
        padding-left: 20px;
    }
    
    /* Adjust mobile top bar for smaller screens */
    .mobile-top-bar {
        right: 10px;
        top: 10px;
        max-width: calc(100% - 100px); /* More space for menu button */
    }
    
    .mobile-top-bar .social-links {
        gap: 8px;
    }
    
    .mobile-top-bar .social-links ul {
        gap: 8px;
    }
    
    .mobile-top-bar .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .menu-toggle {
        top: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
