/*
Theme Name: Codos Reflexivos
Theme URI: https://codosreflexivos.blog
Author: Codos Reflexivos Team
Author URI: https://codosreflexivos.blog
Description: Un tema de WordPress con diseño brutalista para blog de ingeniería, diseño y pensamientos aleatorios. Sin adornos. Solo contenido.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: codosreflexivos
Tags: blog, brutalist, minimalist, black-and-white, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}

/* Ensure post content paragraphs have margin */
.prose p,
.entry-content p {
    margin-bottom: 1.5em;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    margin-top: 2em;
    margin-bottom: 1em;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6,
nav,
button {
    font-family: 'Outfit', sans-serif;
}

p,
textarea,
input,
.mono-text {
    font-family: 'Anonymous Pro', monospace;
}

/* ========================================
   SELECTION STYLE (Brutalist)
   ======================================== */

::selection {
    background-color: #000;
    color: #fff;
}

::-moz-selection {
    background-color: #000;
    color: #fff;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
}

/* ========================================
   WORDPRESS CORE ALIGNMENT CLASSES
   ======================================== */

.alignnone {
    margin: 1.5em 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 1.5em auto;
}

.alignright {
    float: right;
    margin: 0.5em 0 1.5em 1.5em;
}

.alignleft {
    float: left;
    margin: 0.5em 1.5em 1.5em 0;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    font-family: 'Anonymous Pro', monospace;
    margin-top: 0.5rem;
}

/* ========================================
   WORDPRESS GALLERY
   ======================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    border: 2px solid #000;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.gallery-item img:hover {
    filter: grayscale(0%);
}

/* ========================================
   COMMENTS
   ======================================== */

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    border-left: 4px solid #000;
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.comment-author {
    font-weight: bold;
    text-transform: uppercase;
}

.comment-meta {
    font-family: 'Anonymous Pro', monospace;
    font-size: 0.75rem;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.comment-content {
    font-family: 'Anonymous Pro', monospace;
}

/* ========================================
   FORMS
   ======================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #000;
    background: #fff;
    font-family: 'Anonymous Pro', monospace;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
    outline: none;
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
}

button,
input[type="submit"],
.wp-block-button__link {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 0.75rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    background: #fff;
    color: #000;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ========================================
   SCROLLBAR HIDE (for horizontal scroll)
   ======================================== */

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ========================================
   CUSTOM BRUTALIST STYLES
   ======================================== */

.brutalist-shadow {
    box-shadow: 8px 8px 0px 0px rgba(0, 0, 0, 1);
}

.brutalist-shadow-small {
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
}

.brutalist-shadow-button {
    box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 1);
}

.brutalist-shadow-button:active {
    box-shadow: none;
    transform: translateY(2px);
}

/* Text stroke effect for outlined text */
.text-stroke {
    -webkit-text-stroke: 1.5px #000;
    -webkit-text-fill-color: transparent;
}

.text-stroke-white {
    -webkit-text-stroke: 1.5px #fff;
    -webkit-text-fill-color: transparent;
}