/*
Theme Name: Offerly
Theme URI: https://offerlytech.com
Author: Offerly Team
Author URI: https://offerlytech.com
Description: Un tema moderno y flexible para WordPress, completamente compatible con Gutenberg y optimizado para crear experiencias de usuario excepcionales.
Version: 1.0.0
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
Text Domain: offerly
Tags: block-patterns, full-site-editing, block-styles, wide-blocks, custom-colors, custom-menu, editor-style, featured-images, translation-ready
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 - CSS Variables
2.0 - General Styles
3.0 - Typography
4.0 - Layout
5.0 - Gutenberg Blocks
6.0 - Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 - CSS Variables
--------------------------------------------------------------*/
:root {
    /* Colors */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(240, 5%, 10%);
    --primary: hsl(333, 71%, 50%);
    --primary-hover: hsl(333, 71%, 45%);
    --secondary: hsl(240, 5%, 33%);
    --destructive: hsl(0, 72%, 50%);
    --accent: hsl(355, 100%, 97%);
    --border: hsl(240, 4%, 83%);
    --input: hsl(240, 4%, 83%);
    --muted: hsl(220, 14%, 94%);
    --muted-foreground: hsl(240, 5%, 40%);

    /* Gradient */
    --gradient-start: hsl(330, 100%, 98%);
    --gradient-end: hsl(0, 0%, 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Merriweather', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Border Radius */
    --radius: 1.5rem;
    --radius-sm: 0.75rem;
    --radius-lg: 2rem;
}

/* Dark Mode */
.dark {
    --background: hsl(240, 5%, 10%);
    --foreground: hsl(0, 0%, 98%);
    --primary: hsl(328, 85%, 70%);
    --primary-hover: hsl(328, 85%, 75%);
    --secondary: hsl(240, 3%, 46%);
    --destructive: hsl(0, 84%, 60%);
    --accent: hsl(343, 87%, 15%);
    --border: hsl(240, 5%, 20%);
    --input: hsl(240, 5%, 20%);
    --muted: hsl(240, 5%, 15%);
    --muted-foreground: hsl(240, 5%, 60%);

    --gradient-start: hsl(240, 5%, 12%);
    --gradient-end: hsl(240, 5%, 10%);
}

/*--------------------------------------------------------------
2.0 - General Styles
--------------------------------------------------------------*/
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--background);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/*--------------------------------------------------------------
3.0 - Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1rem;
}

/*--------------------------------------------------------------
4.0 - Layout
--------------------------------------------------------------*/
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/*--------------------------------------------------------------
4.0 - Gutenberg Blocks
--------------------------------------------------------------*/
.wp-block-button__link {
    background-color: #0073aa;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.wp-block-button__link:hover {
    background-color: #005177;
    color: #fff;
}

/* Wide and Full Alignment */
.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/*--------------------------------------------------------------
5.0 - Responsive
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .site-content {
        padding: 1rem;
    }
}
