/*
Theme Name: WiredToStart
Theme URI: https://wiredtostart.com
Author: WiredToStart Team
Author URI: https://wiredtostart.com
Description: A modern, clean affiliate website theme for online business tools and reviews
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wiredtostart
Tags: blog, news, magazine, affiliate, reviews
*/

/* ========================================
   RESET & BASE STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #DC2626;
    --primary-dark: #B91C1C;
    --primary-light: #FEE2E2;
    --secondary: #0F172A;
    --accent: #F59E0B;
    --bg: #FFFFFF;
    --bg-gray: #F9FAFB;
    --bg-subtle: #F3F4F6;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --text: #0F172A;
    --text-secondary: #475569;
    --text-light: #64748B;
    --success: #10B981;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    transition: all 0.2s;
}

/* ========================================
   TOP BAR
======================================== */
.top-bar {
    background: var(--secondary);
    color: white;
    padding: 0.75rem 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.2s;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.social-links a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   NAVIGATION
======================================== */
.site-header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.site-logo a {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-navigation {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.625rem 1.125rem;
    border-radius: 6px;
    transition: all 0.2s;
    letter-spacing: -0.01em;
    display: block;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-toggle {
    background: var(--bg-gray);
    border: none;
    padding: 0.625rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    background: var(--border);
}

.subscribe-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.subscribe-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu - HIDDEN BY DEFAULT */
.mobile-menu {
    display: none !important;
    position: fixed;
    top: 109px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    z-index: 99;
}

.mobile-menu.active {
    display: block !important;
}

.mobile-menu nav {
    margin-bottom: 1.5rem;
}

.mobile-navigation {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-navigation li {
    margin-bottom: 0.5rem;
}

.mobile-navigation a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.875rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: block;
}

.mobile-navigation a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ========================================
   CONTAINER
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   HERO/FEATURED POST
======================================== */
.hero-post {
    background: var(--secondary);
    color: white;
    padding: 3rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    padding-right: 2rem;
}

.hero-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-title a {
    color: white;
    text-decoration: none;
}

.hero-title a:hover {
    color: var(--primary-light);
}

.hero-excerpt {
    font-size: 1.0625rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hero-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.read-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   CONTENT SECTIONS
======================================== */
.content-section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.section-title {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 32px;
    background: var(--primary);
    border-radius: 2px;
}

.view-all-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s;
}

.view-all-link:hover {
    gap: 0.75rem;
}

/* ========================================
   POST GRID
======================================== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.post-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.post-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.post-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.8125rem;
    color: var(--text-light);
}

.post-meta-left {
    display: flex;
    gap: 1rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Large Post Card */
.post-card-large {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.post-card-large .post-thumbnail {
    height: 100%;
    min-height: 300px;
}

.post-card-large .post-content {
    padding: 2.5rem;
}

.post-card-large .post-title {
    font-size: 1.5rem;
}

/* ========================================
   TRENDING SECTION
======================================== */
.trending-section {
    background: var(--bg-gray);
    padding: 3rem 0;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.trending-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: start;
    gap: 1rem;
}

.trending-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.trending-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    opacity: 0.3;
}

.trending-content h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.375rem;
}

.trending-content p {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* ========================================
   NEWSLETTER CTA
======================================== */
.newsletter-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3.5rem 2rem;
    margin: 4rem 0;
    border-radius: 16px;
}

.newsletter-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.newsletter-content p {
    font-size: 1.0625rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-form button {
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   SINGLE POST
======================================== */
.single-post-header {
    background: var(--secondary);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.single-post-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.single-post-meta {
    display: flex;
    gap: 2rem;
    align-items: center;
    font-size: 0.9375rem;
    opacity: 0.9;
    flex-wrap: wrap;
}

.single-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.single-post-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin: 2.5rem 0 1.25rem;
    letter-spacing: -0.02em;
}

.single-post-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 2rem 0 1rem;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content ul,
.single-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single-post-content li {
    margin-bottom: 0.75rem;
}

.single-post-content img {
    border-radius: 12px;
    margin: 2rem 0;
}

.single-post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: var(--secondary);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ========================================
   PAGINATION
======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
        height: 300px;
    }

    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-card-large {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }

    .post-card-large .post-thumbnail {
        min-height: 250px;
    }

    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-right .search-toggle {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .single-post-title {
        font-size: 2rem;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .post-card-large {
        grid-column: span 1;
    }

    .trending-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .newsletter-content h2 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   ACCESSIBILITY - 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;
    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;
}