/*
Theme Name: Hype Sales Theme
Theme URI: https://hypenoticias.com
Author: Hype Notícias
Author URI: https://hypenoticias.com
Description: A hybrid theme designed to sell high-value source code (Landing Page) and demonstrate news functionalities (Blog).
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: hype-sales-theme
*/

/* --- 1. VARIABLES & RESET --- */
:root {
    /* "Dark Tech" Palette */
    --color-bg-dark: #0f172a;       /* Very dark blue */
    --color-bg-card: #1e293b;       /* Grayish blue */
    --color-primary: #3b82f6;       /* Electric blue */
    --color-primary-hover: #2563eb;
    --color-text-light: #f8fafc;    /* White */
    --color-text-dim: #94a3b8;      /* Gray text */
    
    /* "Clean News" Palette */
    --color-news-bg: #f1f5f9;
    --color-news-card: #ffffff;
    --color-news-text: #334155;
    
    /* Layout */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-width: 1200px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--color-news-text);
    background-color: var(--color-news-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }

/* --- 2. GLOBAL LAYOUT --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--color-bg-dark);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-logo-link img { max-height: 40px; width: auto; }
.site-title a { color: #fff; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.05em; }

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}
.main-navigation a {
    color: var(--color-text-dim);
    font-weight: 500;
    font-size: 0.9rem;
}
.main-navigation a:hover { color: #fff; }

.main-navigation li.menu-cta a {
    background-color: var(--color-primary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
}
.main-navigation li.menu-cta a:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
}

/* --- 3. LANDING PAGE STYLES --- */

/* Wrapper used in front-page.php to force dark mode */
.landing-page-body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    text-align: center;
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--color-text-dim);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Buttons */
.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
}
.btn-primary:hover {
    background-color: var(--color-primary-hover);
}

.btn-secondary {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    backdrop-filter: blur(5px);
}
.btn-secondary:hover {
    background-color: rgba(255,255,255,0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* --- NEW: SLIDER SECTION STYLES --- */
.home-slider-section {
    padding: 60px 0;
    background: #162032; /* Slightly lighter dark */
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 60px;
    overflow: hidden; /* Hide scrollbar spill */
}

.scrolling-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 30px;
    padding: 20px 0; /* Space for shadow */
    /* Hide scrollbar but allow scrolling */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.scrolling-wrapper::-webkit-scrollbar { display: none; }

.card-slide {
    flex: 0 0 auto;
    width: 320px;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}
.card-slide:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}
.card-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    opacity: 0.9;
}
.slide-caption {
    padding: 15px;
    color: var(--color-text-light);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Features Grid */
.features-section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--color-bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.feature-card h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.4rem;
}
.feature-card p {
    color: var(--color-text-dim);
    font-size: 0.95rem;
}

/* --- NEW: CALCULATOR STYLES --- */
.calculator-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, #162032 100%);
}
.calc-box {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
}
.calc-title {
    text-align: center;
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.calc-subtitle {
    text-align: center;
    color: var(--color-text-dim);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.input-group { margin-bottom: 30px; }
.input-group label {
    display: block;
    color: var(--color-text-light);
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1rem;
}
/* Range Slider Styling */
.input-group input[type=range] {
    width: 100%;
    cursor: pointer;
    accent-color: var(--color-primary);
    height: 6px;
    background: #334155;
    border-radius: 5px;
    appearance: none;
}
.input-group input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    margin-top: -7px; /* Adjust for custom track */
}
.input-group input[type=range]::-webkit-slider-runnable-track {
    height: 6px;
    background: #334155;
    border-radius: 5px;
}

.calc-val {
    display: inline-block;
    background: #0f172a;
    color: var(--color-primary);
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 700;
    float: right;
    margin-top: -40px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.calc-result {
    background: #0f172a;
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
}
/* Glowing effect behind result */
.calc-result::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: var(--color-primary);
    filter: blur(80px);
    opacity: 0.2;
    z-index: 0;
}
.calc-result h3 {
    color: var(--color-text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}
.revenue-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #22c55e; /* Profit Green */
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.revenue-note {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}
.calc-badges {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.calc-badges span {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
    font-weight: 600;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    text-align: center;
}
.pricing-box {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 60px;
    border-radius: var(--radius-lg);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.pricing-price {
    font-size: 5rem;
    font-weight: 800;
    color: #fff;
    margin: 20px 0;
}
.pricing-note {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Gallery Page (Vertical Stack) Styles */
.gallery-page-body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    min-height: 100vh;
}
.gallery-header { text-align: center; padding: 80px 0 40px; }
.gallery-header h1 { font-size: 3rem; color: #fff; }
.gallery-content { padding: 40px 0 100px; max-width: 900px; margin: 0 auto; }
.gallery-content > * { margin-bottom: 60px; }
.gallery-content img, .gallery-content iframe { width: 100%; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.1); }
.gallery-cta { text-align: center; margin-top: 80px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; }

/* Blog Styles */
.blog-header { background: #fff; padding: 60px 0; text-align: center; border-bottom: 1px solid #e2e8f0; }
.blog-header h1 { color: #0f172a; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; padding: 60px 0; }
.post-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); display: flex; flex-direction: column; transition: 0.3s; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px -5px rgba(0,0,0,0.1); }
.post-thumbnail { height: 200px; overflow: hidden; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.post-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.post-title { font-size: 1.3rem; color: #1e293b; font-weight: 700; margin-bottom: 10px; }
.post-meta { color: #94a3b8; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; margin-bottom: 10px; }
.read-more-link { margin-top: auto; color: var(--color-primary); font-weight: 600; }

/* Footer */
.site-footer { background: var(--color-bg-dark); color: var(--color-text-dim); padding: 60px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); }

/* Responsive */
@media (max-width: 768px) {
    .hero-headline { font-size: 2.5rem; }
    .pricing-price { font-size: 3.5rem; }
    .calc-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-cta-group { flex-direction: column; }
    .btn { width: 100%; }
}