/*
Theme Name: O'Briens Edge
Theme URI: https://obriensedgemusic.com
Author: Shane O'Brien
Author URI: https://obriensedgemusic.com
Description: A custom WordPress theme for O'Briens Edge Music - featuring a clean, modern design optimized for music content, story-telling, and media galleries.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: obriensedge
*/

/* ========================================
   RESET & BASE STYLES
======================================== */

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

body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    background-color: #0a0a0c;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg, #0a0a0c, #1f1f24, #0e0e12, #181820, #0a0a0c);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

a {
    color: #B1121A;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #8b1428;
}

/* ========================================
   TYPOGRAPHY
======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', 'Bebas Neue', 'Impact', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

/* ========================================
   LAYOUT STRUCTURE
======================================== */

.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER - ROCK'N'ROLL STYLE
======================================== */

.site-header {
    background: #0a0a0a;
    color: #fff;
    position: relative;
}

.header-hero {
    position: relative;
    background: #0a0a0a;
    padding: 1rem 0 0;
    border-bottom: 4px solid #c41e3a;
}

.header-hero > .container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 2;
    width: 100%;
}

.site-branding {
    flex: 1;
    padding-bottom: 1.5rem;
}

/* Header Image */
.header-image {
    flex-shrink: 0;
    line-height: 0;
}

.header-image .header-photo {
    display: block;
    max-height: 150px;
    width: auto;
}

/* Rock'n'Roll Title Styling */
.site-title.rock-title {
    font-size: 1rem;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.site-title.rock-title a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    text-align: left;
    gap: 0.99em;
}

.site-title.rock-title a:hover {
    text-decoration: none;
}

.title-obriens,
.title-edge,
.title-music {
    font-family: 'Teko', 'Bebas Neue', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    display: inline;
    line-height: 0.9;
    transition: color 0.3s ease;
    letter-spacing: 0em;
}

.title-obriens {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    color: #fff;
}

.title-edge {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    color: #c41e3a;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.02em;
}

.title-music {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    color: #fff;
}

.site-title.rock-title a:hover .title-obriens,
.site-title.rock-title a:hover .title-music {
    color: #ccc;
}

.site-title.rock-title a:hover .title-edge {
    color: #e63946;
}

.site-description {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #888;
    margin-bottom: 0;
    font-style: italic;
    letter-spacing: 1px;
    text-align: left;
}

.custom-logo-link {
    display: block;
}

.custom-logo {
    max-height: 80px;
    width: auto;
}

/* ========================================
   NAVIGATION
======================================== */

.main-navigation {
    background-color: #2d2d2d;
    border-top: 3px solid #c41e3a;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 1rem 1.1rem;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    background-color: #c41e3a;
    color: #fff;
}

/* Dropdown Menus */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #3a3a3a;
    min-width: 200px;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.main-navigation ul li:hover > ul {
    display: flex;
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    padding: 0.75rem 1.5rem;
}

/* Navigation Search */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-search {
    margin-left: auto;
    padding: 0.5rem 0;
}

.nav-search-form {
    display: flex;
    align-items: center;
}

.nav-search-input {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 4px 0 0 4px;
    background-color: #3a3a3a;
    color: #fff;
    width: 140px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.nav-search-input::placeholder {
    color: #888;
}

.nav-search-input:focus {
    outline: none;
    background-color: #444;
    width: 180px;
}

.nav-search-button {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0 4px 4px 0;
    background-color: #c41e3a;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search-button:hover {
    background-color: #a01830;
}

.nav-search-button svg {
    display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background-color: #c41e3a;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    margin: 1rem auto;
}

/* ========================================
   MAIN CONTENT
======================================== */

.site-content {
display: flex;
gap: 2rem;
padding: 2rem 0 3rem;
}

.content-area {
    flex: 1;
    min-width: 0;
}

/* ========================================
   BLOG POSTS
======================================== */

.post {
    margin-bottom: 4rem;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-thumbnail {
    margin-bottom: 0;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-header {
    padding: 2rem 2rem 1rem;
}

.entry-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.entry-title a {
    color: #222;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #c41e3a;
}

.entry-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.entry-meta a {
    color: #777;
}

.entry-meta a:hover {
    color: #c41e3a;
}

.posted-on,
.byline,
.cat-links {
    margin-right: 1rem;
}

.posted-on:before,
.byline:before,
.cat-links:before {
    margin-right: 0.5rem;
}

.entry-content {
    padding: 0 2rem 2rem;
    font-size: 1.05rem;
}

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

.entry-footer {
    padding: 1rem 2rem;
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.tags-links {
    color: #666;
}

/* Read More Link */
.more-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: #c41e3a;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.more-link:hover {
    background-color: #8b1428;
    color: #fff;
}

/* ========================================
   PAGINATION
======================================== */

.navigation {
    margin: 3rem 0;
    clear: both;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-links a,
.nav-links .current {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: #c41e3a;
    color: #fff;
}

.nav-links .current {
    background-color: #c41e3a;
    color: #fff;
    font-weight: 600;
}

/* ========================================
   SIDEBAR
======================================== */

.widget-area {
    flex: 0 0 320px;
    width: 320px;
}

.widget {
    background-color: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.widget-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #c41e3a;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
 
}

.widget ul li a:hover {
    color: #c41e3a;
    padding-left: 5px;
    transition: padding-left 0.3s ease;
}

/* Search Widget */
.widget_search .search-form {
    position: relative;
}

.widget_search .search-field {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.widget_search .search-submit {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 1rem;
    background-color: #c41e3a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ccc;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    padding: 0.4rem 0;
}

.footer-widget a {
    color: #ccc;
}

.footer-widget a:hover {
    color: #c41e3a;
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

.site-info a {
    color: #c41e3a;
}

/* ========================================
   COMMENTS
======================================== */

.comments-area {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1rem;
}

.comment-content {
    margin-bottom: 1rem;
}

.reply {
    font-size: 0.9rem;
}

.reply a {
    color: #c41e3a;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media screen and (max-width: 768px) {
    .site-content {
        flex-direction: column;
    }

    .widget-area {
        flex: 1;
        width: 100%;
    }

    .header-hero {
        padding: 1.5rem 0;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation a {
        text-align: center;
    }

    .main-navigation ul ul {
        position: static;
        box-shadow: none;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .nav-search {
        width: 100%;
        padding: 1rem 0;
        order: 3;
    }

    .nav-search-form {
        width: 100%;
    }

    .nav-search-input {
        flex: 1;
        width: auto;
    }

    .nav-search-input:focus {
        width: auto;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }
        .header-image img{
        display: none !important;
    }
}

@media screen and (max-width: 480px) {
      .header-image img{
        display: none !important;
    }
    body {
        font-size: 16px;
    }

    .header-hero {
        padding: 1rem 0;
    }

    .container {
        padding: 0 15px;
    }

    .post,
    .widget,
    .comments-area {
        padding: 1.5rem;
    }

    .entry-header,
    .entry-content {
        padding: 1.5rem;
    }
}

/* ========================================
   FRONT PAGE
======================================== */

.front-page-hero {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

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

.front-page-content {
    width: 100%;
    background-color: #fff;
    padding: 1.5rem 2rem 3rem;
    border-radius: 8px;
}

.section-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #222;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #c41e3a;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-post {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.grid-post-thumbnail {
    display: block;
    overflow: hidden;
}

.grid-post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-post:hover .grid-post-thumbnail img {
    transform: scale(1.05);
}

.grid-post-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem;
    margin: 0;
}

.grid-post-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.grid-post-title a:hover {
    color: #c41e3a;
}

.see-more-posts {
    text-align: center;
    margin-top: 3rem;
}

.see-more-posts a {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background-color: #c41e3a;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.see-more-posts a:hover {
    background-color: #a01830;
    color: #fff;
}

@media screen and (max-width: 900px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .front-page-hero {
        max-height: 300px;
    }
}

/* ========================================
   RESPONSIVE EMBEDS (YouTube, Vimeo, etc.)
======================================== */

.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video {
    max-width: 100%;
}

.wp-block-embed__wrapper {
    position: relative;
}

.wp-block-embed-youtube .wp-block-embed__wrapper,
.wp-block-embed-vimeo .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.wp-block-embed-youtube .wp-block-embed__wrapper iframe,
.wp-block-embed-vimeo .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Classic editor embeds */
.entry-content .wp-video,
.entry-content .embed-youtube,
.entry-content .embed-vimeo {
    margin-bottom: 1.5rem;
}

/* ========================================
   UTILITY CLASSES
======================================== */

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

.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
    text-align: center;
}
