/*
Theme Name: Red Line Band
Description: A modern, dark rock band theme with red accents. Perfect for music artists, bands, and entertainment websites.
Author: Red Line Band
Version: 1.5.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: red-line-band
Tags: music, band, dark, red, entertainment, responsive, modern
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    padding-top: 80px; /* Compensate for fixed navbar */
}

/* CSS Variables for Theme Colors */
:root {
    --background: #000000;
    --foreground: #ffffff;
    --card: #000000;
    --card-foreground: #ffffff;
    --primary: #ff0000;
    --primary-foreground: #ffffff;
    --secondary: #a00000;
    --secondary-foreground: #ffffff;
    --muted: #505050;
    --muted-foreground: #cccccc;
    --accent: #a00000;
    --accent-foreground: #ffffff;
    --border: #505050;
    --input: #1a1a1a;
    --ring: rgba(255, 0, 0, 0.5);
    --radius: 0.5rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo-link img {
    display: block;
    object-fit: contain;
    /* Custom dimensions will be applied via inline styles from customizer */
}

.site-branding {
    display: flex;
    align-items: center;
}

.nav-menu-wrapper {
    display: none;
}

.nav-menu {
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--primary);
}

.mobile-menu-toggle svg {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] svg {
    transform: rotate(90deg);
}

.nav-menu a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--primary);
}

.mobile-menu-toggle svg {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] svg {
    transform: rotate(90deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.4) sepia(1) hue-rotate(340deg) saturate(2);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    color: var(--foreground);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: #cc0000;
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--foreground);
}

.btn-outline:hover {
    background-color: var(--foreground);
    color: var(--background);
}

/* Sections */
.section {
    padding: 5rem 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--foreground);
}

.section-bg {
    background-color: var(--card);
}

/* Music Section */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.album-card {
    background-color: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.album-card:hover {
    transform: scale(1.05);
}

.album-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.album-info {
    padding: 1.5rem;
}

.album-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.album-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.album-year {
    color: var(--muted-foreground);
}

.badge {
    padding: 0.25rem 0.75rem;
    background-color: var(--muted);
    color: var(--muted-foreground);
    border-radius: 9999px;
    font-size: 0.875rem;
}

/* Tour Section */
.tour-list {
    max-width: 800px;
    margin: 0 auto;
}

.tour-item {
    background-color: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tour-date {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.date-box {
    text-align: center;
    min-width: 60px;
}

.date-day {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.date-month {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.tour-details h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.tour-venue {
    color: var(--muted-foreground);
}

.tour-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-secondary {
    background-color: var(--muted);
    color: var(--muted-foreground);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Merch Section */
.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.merch-card {
    background-color: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
}

.merch-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.merch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merch-info {
    padding: 1.5rem;
}

.merch-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.merch-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.merch-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

/* Footer */
.footer {
    padding: 3rem 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
}

.footer-text {
    color: var(--muted-foreground);
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-menu-wrapper {
        display: block !important;
    }
    
    .nav-menu {
        display: flex !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .hero h1 {
        font-size: 6rem;
    }
    
    .hero p {
        font-size: 1.5rem;
    }
    
    .tour-item {
        flex-direction: row;
        align-items: center;
    }
    
    .tour-actions {
        margin-left: auto;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 8rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .logo-link img {
        /* Desktop dimensions will be applied via customizer */
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* Post Grid Styles */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.post-card {
    background-color: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.entry-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--primary);
}

.entry-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.entry-summary {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Single Post Styles */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.single-post .entry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.single-post .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.single-post .entry-meta {
    justify-content: center;
    margin-bottom: 2rem;
}

.single-post .post-thumbnail {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.single-post .entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.single-post .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    margin: 2rem 0 1rem 0;
    color: var(--primary);
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem 0;
}

/* Page Styles */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-content .entry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-content .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-content .page-thumbnail {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.page-content .entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Archive Styles */
.page-header {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--card);
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.archive-description {
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Styles */
.search-form {
    display: flex;
    max-width: 400px;
    margin: 2rem auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background-color: var(--input);
    color: var(--foreground);
}

.search-field:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--ring);
}

.search-submit {
    padding: 0.75rem 1rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background-color: #cc0000;
}

/* Navigation Styles */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 1rem;
    background-color: var(--card);
    color: var(--foreground);
    text-decoration: none;
    border-radius: var(--radius);
    transition: background-color 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* Pagination Styles */
.pagination {
    margin-top: 3rem;
    text-align: center;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 0.25rem;
    background-color: var(--card);
    color: var(--foreground);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* No Content Styles */
.no-posts,
.no-content {
    text-align: center;
    padding: 3rem 0;
}

.no-posts h2,
.no-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.no-posts p,
.no-content p {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

/* Tags and Categories */
.tags,
.categories {
    margin-top: 1rem;
}

.tag-links a,
.categories a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background-color: var(--muted);
    color: var(--muted-foreground);
    text-decoration: none;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tag-links a:hover,
.categories a:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Mobile menu styles */
.nav-menu-wrapper.active {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.98);
    border-top: 1px solid var(--border);
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.nav-menu-wrapper.active .nav-menu {
    flex-direction: column !important;
    gap: 1rem;
    display: flex !important;
}

.nav-menu-wrapper.active .nav-menu li {
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
}

.nav-menu-wrapper.active .nav-menu li:last-child {
    border-bottom: none;
}

.nav-menu-wrapper.active .nav-menu a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .single-post .entry-title,
    .page-content .entry-title,
    .page-title {
        font-size: 2rem;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    body {
        padding-top: 70px; /* Smaller padding for mobile */
    }
    
    .logo-link img {
        /* Mobile dimensions will be applied via customizer */
    }
}

/* Menu open state */
body.menu-open {
    overflow: hidden !important;
}

/* Ensure mobile menu is visible on mobile */
@media (max-width: 767px) {
    .nav-menu-wrapper {
        display: none;
    }
    
    .nav-menu-wrapper.active {
        display: block !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
}
