/*
Theme Name: Sonidos
Theme URI: https://sonidosysonados.com
Description: Modern theme for Sonidos y Sonados podcast, based on the classic Redoable look.
Version: 1.0
Author: Rael Garcia
Author URI: https://rael.dev
Tags: dark, two-columns, right-sidebar, podcast, responsive, translation-ready
License: GPL-2.0-or-later
Text Domain: sonidos
*/

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

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

html {
    overflow-y: scroll;
    height: 100%;
}

body {
    background: #111;
    color: #CCC;
    font: 85%/1.6 'Lucida Grande', Verdana, Arial, sans-serif;
    margin: 0;
}

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

a { color: #E00; text-decoration: none; }
a:hover { color: #EEE; }
a:visited { color: #C00; }

.clear { clear: both; }

/* === Header === */

#header-wrapper {
    height: 200px;
    max-width: 1000px;
    margin: 0 auto;
    background: #900;
    border-left: 10px solid #600;
    border-right: 10px solid #600;
}

#header {
    background: #111;
    width: 100%;
    max-width: 1000px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

#header.scrolled #header_content {
    height: 50px;
}

#header.scrolled .custom-logo {
    max-height: 35px;
}

#header.scrolled #title h1 {
    font-size: 1.6em;
}

#header.scrolled #title .description {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

#header.scrolled #title {
    padding: 0 15px 8px;
}

#header.scrolled #header-logo {
    width: 280px;
}

#header_content {
    background: #900;
    border-left: 10px solid #600;
    border-right: 10px solid #600;
    height: 180px;
    position: relative;
    display: flex;
    align-items: flex-end;
    transition: height 0.3s ease, border-width 0.3s ease;
}

#title {
    padding: 0 20px 20px;
}

#title h1 {
    margin: 0;
    font-size: 2.4em;
    line-height: 1.2;
    transition: font-size 0.3s ease;
}

#title a,
#title h1 a {
    color: #fff;
    text-decoration: none;
    background: none;
}

#title a:hover,
#title h1 a:hover {
    color: #EEE;
}

#title .description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2em;
    margin-top: 4px;
    transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease;
    overflow: hidden;
}

#title img {
    max-height: 50px;
    width: auto;
}

#header-logo {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
}

#header-logo .custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo {
    max-height: 150px;
    max-width: 250px;
    width: auto;
    border-radius: 5px;
}

#header.scrolled #header-logo {
    width: 280px;
}

#header.scrolled .custom-logo {
    max-height: 35px;
}

/* === Page Layout === */

#page {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.content {
    display: flex;
    min-height: 80vh;
}

#middlecolumn {
    background: #333;
    border-left: 10px solid #222;
    border-right: 10px solid #222;
    flex: 1;
    min-width: 0;
}

#primary {
    padding: 10px 15px;
}

#primarycontent {
    font-size: 1.3em;
    line-height: 1.6;
}

/* === Posts / Entries === */

.hentry {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
}

.hentry:last-child {
    border-bottom: none;
}

.entry-head {
    position: relative;
    padding-left: 55px;
    min-height: 45px;
    margin-bottom: 10px;
}

.published_sm {
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    text-align: center;
    background: #262626;
    border-radius: 3px;
    padding: 3px 0;
}

.published_sm .day {
    font-size: 1.4em;
    font-weight: bold;
    color: #E00;
    line-height: 1.2;
}

.published_sm .month {
    font-size: 0.8em;
    color: #999;
    text-transform: uppercase;
    line-height: 1.2;
}

.entry-title {
    font-size: 1.3em;
    font-weight: normal;
    line-height: 1.3;
    margin: 0;
}

.entry-title a {
    color: #EEE;
}

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

.entry-title a:visited {
    color: #CCC;
}

.entry-meta {
    font-size: 0.8em;
    color: #888;
    margin-top: 4px;
}

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

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

.entry-meta .authordata,
.entry-meta .commentslink,
.entry-meta .entry-category,
.entry-meta .entry-tags {
    margin-right: 10px;
}

.entry-content {
    color: #CCC;
    line-height: 1.7;
}

.entry-content a {
    color: #E00;
    text-decoration: underline;
}

.entry-content a:hover {
    color: #EEE;
}

.entry-content p {
    margin-bottom: 1em;
}

.entry-content h2 {
    color: #CCC;
    font-size: 1.3em;
    margin: 1.2em 0 0.6em;
}

.entry-content h3 {
    color: #CCC;
    font-size: 1.1em;
    margin: 1em 0 0.5em;
}

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

.entry-content blockquote {
    border-left: 3px solid #900;
    padding: 5px 15px;
    margin: 1em 0;
    color: #aaa;
}

/* === 404 === */

.four04 {
    text-align: center;
    padding: 40px 20px;
}

.four04 h3 {
    color: #EEE;
    font-size: 1.6em;
    margin-bottom: 15px;
}

/* === Headings === */

h2, h2 a, h2 a:visited { color: #CCC; font-size: 1.4em; }
h3, h3 a, h3 a:visited { color: #CCC; }
h4, h4 a, h4 a:visited { color: #888; }

/* === Sidebar === */

#rightcolumn {
    background: #262626;
    border-right: 10px solid #191919;
    width: 280px;
    flex-shrink: 0;
    padding: 15px;
    font-size: 1.2em;
}

.secondary {
    color: #CCC;
}

.module {
    margin-bottom: 25px;
}

.widgettitle {
    color: #EEE;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #444;
}

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

.secondary li {
    padding: 3px 0;
    border-bottom: 1px solid #333;
}

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

.secondary a {
    color: #CCC;
    font-size: 0.95em;
}

.secondary a:hover {
    color: #E00;
}

/* Sidebar navigation */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: block;
    padding: 8px 12px;
    color: #EEE;
    background: #333;
    border-bottom: 1px solid #222;
    font-size: 1em;
}

.sidebar-menu a:hover {
    background: #900;
    color: #fff;
}

.sidebar-menu .current-menu-item a {
    background: #900;
    color: #fff;
}

/* Tag cloud */
.tagcloud a {
    display: inline-block;
    padding: 2px 6px;
    margin: 2px;
    background: #333;
    border-radius: 3px;
    font-size: 0.85em !important;
    color: #CCC;
}

.tagcloud a:hover {
    background: #900;
    color: #fff;
}

/* Search */
#search {
    margin-bottom: 20px;
}

.search-form {
    display: flex;
}

.search-field {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #444;
    background: #333;
    color: #CCC;
    font-size: 1em;
    border-radius: 3px 0 0 3px;
}

.search-field:focus {
    outline: none;
    border-color: #900;
}

.search-submit {
    padding: 6px 12px;
    background: #900;
    color: #fff;
    border: 1px solid #900;
    cursor: pointer;
    font-size: 1em;
    border-radius: 0 3px 3px 0;
}

.search-submit:hover {
    background: #a00;
}

/* === Comments === */

#comments {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

#comments h3 {
    color: #EEE;
    margin-bottom: 15px;
}

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

.comment-list .comment {
    padding: 15px 0;
    border-bottom: 1px solid #444;
}

.comment-author {
    font-weight: bold;
    color: #EEE;
}

.comment-meta {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 8px;
}

.comment-content {
    color: #CCC;
}

.comment-respond label {
    display: block;
    color: #CCC;
    margin-bottom: 3px;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 8px;
    background: #333;
    border: 1px solid #444;
    color: #CCC;
    border-radius: 3px;
    margin-bottom: 10px;
}

.comment-respond textarea {
    min-height: 120px;
}

.comment-respond .submit {
    background: #900;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 1em;
}

.comment-respond .submit:hover {
    background: #a00;
}

/* === Footer === */

#footer {
    background: #0a0a0a;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 15px;
    text-align: center;
    font-size: 1.2em;
    color: #888;
}

#footer_links {
    margin-bottom: 10px;
}

#footer_links a {
    color: #CCC;
    margin: 0 10px;
}

#footer_links a:hover {
    color: #E00;
}

#copyright {
    margin-bottom: 8px;
}

#copyright a {
    color: #888;
}

#footer small {
    color: #666;
    font-size: 0.85em;
}

/* === Navigation (pagination) === */

.posts-navigation,
.post-navigation,
.comments-navigation {
    padding: 20px 0;
    font-size: 0.95em;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-links a {
    color: #E00;
}

.nav-links a:hover {
    color: #EEE;
}

/* === WordPress Defaults === */

.wp-caption {
    max-width: 100%;
    background: #262626;
    padding: 5px;
    border-radius: 3px;
}

.wp-caption-text {
    font-size: 0.85em;
    color: #888;
    text-align: center;
    padding: 5px 0;
}

.alignleft { float: left; margin: 0 15px 10px 0; }
.alignright { float: right; margin: 0 0 10px 15px; }
.aligncenter { display: block; margin: 10px auto; }

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

/* === PowerPress Player === */

.powerpress_player {
    margin: 10px 0;
}

/* === Responsive === */

@media (max-width: 768px) {
    body {
        font-size: 70%;
    }

    #header,
    #page,
    #footer {
        max-width: 100%;
    }

    #header_content {
        height: 120px;
        border-left: 5px solid #600;
        border-right: 5px solid #600;
    }

    #title h1 {
        font-size: 1.8em;
    }

    .content {
        flex-direction: column;
    }

    #middlecolumn {
        border-left: none;
        border-right: none;
    }

    #rightcolumn {
        width: 100%;
        border-right: none;
    }

    .entry-head {
        padding-left: 0;
    }

    .published_sm {
        position: static;
        display: inline-block;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    #header_content {
        text-align: center;
    }

    #title h1 {
        font-size: 1.4em;
    }

    #menu a,
    #rightcolumnheader a {
        padding: 8px 10px;
        font-size: 1em;
    }

    .entry-title {
        font-size: 1.1em;
    }
}
