/*
Theme Name: Home Money
Theme URI: https://tudodeprojetos.com/
Author: Grupo TP
Author URI: https://tudodeprojetos.com/
Description: Tema WordPress moderno e responsivo para o portal Home Money - monetização e negócios.
Version: 1.0.0
Text Domain: homemoney
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, one-column, two-columns, custom-menu, featured-images, translation-ready
*/

/* ========================================
   Reset & Base
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: #1f2937;
    font-weight: 700;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p {
    margin-bottom: 1.2em;
    line-height: 1.75;
}

strong, b {
    font-weight: 600;
}

em, i {
    font-style: italic;
}

/* ========================================
   Links
   ======================================== */
a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: #1557b0;
}

a:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   Images & Media
   ======================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

figure {
    margin: 0 0 1.5em;
}

figcaption {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

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

/* ========================================
   Lists
   ======================================== */
ul, ol {
    list-style: none;
    padding: 0;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.4em;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content li {
    margin-bottom: 0.4em;
    line-height: 1.75;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin-bottom: 0;
    margin-top: 0.3em;
}

/* ========================================
   Tables
   ======================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 0.95rem;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
}

tbody tr:hover {
    background: #f9fafb;
}

/* ========================================
   Forms
   ======================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

input[type="submit"],
button {
    font-family: inherit;
    cursor: pointer;
}

::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* ========================================
   Blockquotes
   ======================================== */
blockquote {
    border-left: 4px solid #1a73e8;
    padding: 16px 24px;
    margin: 1.5em 0;
    background: #f0f4ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
}

blockquote p:last-child {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #6b7280;
    font-style: normal;
}

/* ========================================
   Code & Pre
   ======================================== */
code {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.88em;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    color: #dc2626;
}

pre {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.88rem;
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5em;
    line-height: 1.6;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

/* ========================================
   Horizontal Rule
   ======================================== */
hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2em 0;
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background: rgba(26, 115, 232, 0.2);
    color: #1f2937;
}

::-moz-selection {
    background: rgba(26, 115, 232, 0.2);
    color: #1f2937;
}

/* ========================================
   Accessibility
   ======================================== */
.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;
}

.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;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ========================================
   WordPress Core Alignment
   ======================================== */
.alignnone {
    margin: 1em 0;
}

.aligncenter {
    display: block;
    margin: 1em auto;
}

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

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

.alignwide {
    margin-left: -5%;
    margin-right: -5%;
    max-width: 110%;
    width: 110%;
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

/* ========================================
   WordPress Captions
   ======================================== */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption img {
    display: block;
    margin: 0;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

/* ========================================
   WordPress Gallery
   ======================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 1.5em;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

.gallery-caption {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
    text-align: center;
}

/* ========================================
   WordPress Blocks Overrides
   ======================================== */
.wp-block-image {
    margin-bottom: 1.5em;
}

.wp-block-image img {
    border-radius: 8px;
}

.wp-block-separator {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2em 0;
}

.wp-block-quote {
    border-left: 4px solid #1a73e8;
    padding: 16px 24px;
    margin: 1.5em 0;
    background: #f0f4ff;
    border-radius: 0 8px 8px 0;
}

.wp-block-button .wp-block-button__link {
    background: #1a73e8;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.wp-block-button .wp-block-button__link:hover {
    background: #1557b0;
}

.wp-block-table table {
    border-collapse: collapse;
}

.wp-block-table td,
.wp-block-table th {
    border: 1px solid #e5e7eb;
}

/* ========================================
   Sticky Post Badge
   ======================================== */
.sticky .post-card {
    border: 2px solid #1a73e8;
}

.sticky .post-card::before {
    content: '★ Destaque';
    position: absolute;
    top: 12px;
    right: 12px;
    background: #1a73e8;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 1;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .site-header,
    .site-footer,
    .main-navigation,
    .comments-area,
    .post-navigation,
    .entry-tags,
    .search-form,
    .btn {
        display: none !important;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .entry-content img {
        max-width: 100% !important;
    }

    .single-container,
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ========================================
   Responsive Utilities
   ======================================== */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    body {
        font-size: 15px;
    }

    .alignleft,
    .alignright {
        float: none;
        margin: 1em 0;
    }

    .alignwide,
    .alignfull {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        width: 100%;
    }
}
