/*
Theme Name: Resumotec
Theme URI: https://mechamorafa.com/resumotec
Author: Rafael Ramos
Author URI: https://mechamorafa.com
Description: A sleek, modern WordPress theme for tech blogs, AI news, and gadget reviews with a clean two-column layout and Short Notes micro-blogging integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: resumotec
Tags: two-columns, custom-menu, featured-images, sticky-post, theme-options, threaded-comments, translation-ready, news, blog, tech
*/

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #6b7280;
    --accent-color: #6366f1;
    --bg-color: #ffffff;
    --card-bg: #fdfdfd;
    --border-color: #e5e7eb;
    --max-width: 1200px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--primary-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4rem;
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    text-transform: lowercase;
    display: inline-flex;
    align-items: center;
}

.logo span {
    color: var(--accent-color);
}

.custom-logo-link img {
    max-height: 48px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
}

.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a {
    color: var(--accent-color);
}

/* Mobile Menu Toggle Button */
header .menu-toggle {
    display: none !important;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent !important;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    box-shadow: none;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* Animated X when active */
header .menu-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
    background-color: var(--accent-color);
}

header .menu-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

header .menu-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
    background-color: var(--accent-color);
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem 0;
        margin-bottom: 2.5rem;
        position: relative;
    }

    header .menu-toggle {
        display: flex !important;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        padding: 1.5rem 2rem;
        z-index: 1000;
    }

    .main-navigation.is-active {
        display: block !important;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .main-navigation a {
        font-size: 1rem;
        display: block;
        padding: 0.65rem 0;
        border-bottom: 1px dashed #f3f4f6;
        width: 100%;
    }

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

    /* Mobile Typography Adjustments */
    .post-title {
        font-size: 1.85rem;
        line-height: 1.25;
        margin-bottom: 1rem;
    }

    .article-header {
        margin-bottom: 2.5rem;
    }

    .article-header .post-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .article-subtitle {
        font-size: 1.15rem;
        line-height: 1.5;
    }

    .post-excerpt {
        font-size: 1.05rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .article-body {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .article-body h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }

    .article-body h3 {
        font-size: 1.25rem;
    }

    .article-body blockquote,
    blockquote,
    .wp-block-quote {
        font-size: 1.15rem;
        padding: 1.25rem 1.5rem;
        margin: 2rem 0;
    }
}

/* Main Layout */
.main-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

@media (max-width: 900px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Posts */
.post,
.type-post,
.type-page {
    margin-bottom: 5rem;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-meta a {
    color: var(--secondary-color);
}

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

.post-title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.post-excerpt {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    max-width: 90%;
}

.post-image {
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border-radius: 8px;
}

.post-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.short-notes {
    margin-bottom: 4rem;
}

.note {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
}

.note p {
    font-size: 0.95rem;
    color: #374151;
}

.note-date {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.widgets .widget {
    margin-bottom: 3rem;
}

.widget h3,
.widget .widget-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

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

.widget-list li,
.widget ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.widget-list a,
.widget ul li a {
    font-size: 0.95rem;
    display: block;
}

/* Form Controls in Widgets / Content */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    background: #ffffff;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

button,
input[type="submit"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

button:hover,
input[type="submit"]:hover {
    background: var(--accent-color);
}

/* Article Page Specifics */
.article-header {
    margin-bottom: 4rem;
    text-align: left;
}

.article-header .post-meta {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.article-header .post-title {
    font-size: 4rem;
    max-width: 900px;
}

.article-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 1rem;
    max-width: 800px;
}

.article-body {
    font-size: 1.25rem;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 2rem;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    margin: 2.5rem 0 1rem;
}

.article-body h2 {
    font-size: 2rem;
}

.article-body h3 {
    font-size: 1.5rem;
}

.article-body blockquote,
blockquote,
.wp-block-quote {
    position: relative;
    border-left: 4px solid var(--accent-color);
    padding: 1.75rem 2.25rem;
    margin: 3rem 0;
    font-style: italic;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(249, 250, 251, 0.95) 100%);
    font-size: 1.35rem;
    line-height: 1.6;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.03);
}

blockquote::before,
.wp-block-quote::before {
    content: "“";
    position: absolute;
    top: -0.2rem;
    left: 1rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--accent-color);
    opacity: 0.2;
    line-height: 1;
    pointer-events: none;
}

blockquote cite,
.wp-block-quote cite,
blockquote figcaption,
.wp-block-quote figcaption {
    display: block;
    font-style: normal;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 1.25rem;
    letter-spacing: 0.02em;
}

blockquote cite::before,
.wp-block-quote cite::before {
    content: "— ";
    color: var(--accent-color);
}

/* Pullquotes */
.wp-block-pullquote {
    padding: 2.5rem 0;
    margin: 3.5rem 0;
    text-align: center;
    border-top: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    border-left: none;
}

.wp-block-pullquote blockquote {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    font-style: normal;
}

/* Fieldset & Legend */
fieldset {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.75rem 2rem 1.5rem;
    margin: 2.5rem 0;
    background: #fafafa;
}

legend {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    background: #eef2ff;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Figures & Captions */
.article-body figure,
figure {
    margin: 3rem 0;
}

.article-body figcaption,
figcaption,
.wp-caption-text {
    display: table;
    margin: 0.85rem auto 0;
    font-size: 0.88rem;
    color: var(--secondary-color);
    text-align: center;
    line-height: 1.5;
    padding: 0.4rem 1rem;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

/* Code & Pre Blocks */
pre,
code,
.wp-block-code {
    font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

code {
    background: #f1f5f9;
    color: #4338ca;
    padding: 0.2rem 0.45rem;
    border-radius: 5px;
    font-size: 0.88em;
}

pre,
.wp-block-code {
    display: block;
    background: #0f172a;
    color: #f8fafc;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.92rem;
    line-height: 1.6;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
    margin: 2rem 0;
}

pre code,
.wp-block-code code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}


.article-body ul,
.article-body ol {
    margin: 0 0 2rem 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* Post Tags & Author Section */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-tags a {
    background: #f3f4f6;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
}

.post-tags a:hover {
    background: var(--accent-color);
    color: #ffffff;
}

/* Pagination */
.pagination,
.navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 600;
}

.pagination .page-numbers.current {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.pagination .page-numbers:hover:not(.current) {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Comments Section */
.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.comments-title,
.comment-reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    margin-bottom: 3rem;
}

.comment-list .comment {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f3f4f6;
}

.comment-list .children {
    list-style: none;
    margin-left: 2.5rem;
    margin-top: 1.5rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 700;
    font-style: normal;
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

.reply a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
}

.comment-form p {
    margin-bottom: 1.25rem;
}

.comment-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

/* Footer */
footer {
    margin-top: 8rem;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    background: #f9fafb;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-about p {
    color: var(--secondary-color);
    max-width: 80%;
    margin-top: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* WordPress Alignment & Media Utilities */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-align: center;
    margin-top: 0.5rem;
}

/* 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 !important;
    width: 1px;
    word-wrap: normal !important;
}