/*
Theme Name: NetworkMarketingPro
Theme URI: https://networkmarketingpro.pl
Author: NetworkMarketingPro
Author URI: https://networkmarketingpro.pl
Description: Profesjonalny motyw WordPress dla bloga o marketingu sieciowym i MLM
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: networkmarketingpro
Tags: blog, one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images

Motyw stworzony na podstawie designu React dla NetworkMarketingPro.pl
*/

/* ===== CSS Variables ===== */
:root {
    --background: #ffffff;
    --foreground: #000000;
    --card: #fafafa;
    --card-foreground: #000000;
    --primary: #ff0000;
    --primary-foreground: #ffffff;
    --secondary: #f5f5f5;
    --secondary-foreground: #1a1a1a;
    --muted: #f5f5f5;
    --muted-foreground: #666666;
    --border: #e5e5e5;
    --header-bg: #141414;
    --header-foreground: #ffffff;
    --cta-bg: #f2f2f2;
    --radius: 0.25rem;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background-color: var(--header-bg);
    color: var(--header-foreground);
}

.header-inner {
    display: flex;
    height: 4rem;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .header-inner {
        height: 5rem;
    }
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .site-logo {
        font-size: 1.5rem;
    }
}

.site-logo .highlight {
    color: var(--primary);
}

/* Navigation */
.main-nav {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-link {
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color 0.2s;
    color: var(--header-foreground);
}

.nav-link:hover {
    color: var(--primary);
}

/* CTA Button */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.btn-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.header-cta {
    display: none;
}

@media (min-width: 768px) {
    .header-cta {
        display: block;
    }
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: block;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--header-foreground);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-nav {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav.is-open {
    display: block;
}

.mobile-nav .nav-link {
    display: block;
    padding: 0.5rem 0;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    width: 100%;
}

.hero-image {
    position: relative;
    height: 400px;
    width: 100%;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-image {
        height: 500px;
    }
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3), transparent);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 3rem;
    }
}

.hero-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--primary);
    color: var(--primary-foreground);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 1.875rem;
    font-weight: 900;
    color: #ffffff;
    max-width: 56rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* ===== Main Layout ===== */
.site-main {
    padding: 3rem 0;
}

.content-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* ===== Article Content ===== */
.article-content {
    max-width: 100%;
}

.article-content p {
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    color: #404040;
}

.article-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: var(--foreground);
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: all 0.2s;
}

.article-content a:hover {
    text-decoration: none;
}

.article-content ul,
.article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

/* Drop Cap */
.drop-cap::first-letter {
    float: left;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

/* ===== CTA Box ===== */
.cta-box {
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
    background: var(--cta-bg);
}

.cta-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-box.dark {
    background: var(--foreground);
    color: var(--background);
}

.cta-box.dark p {
    opacity: 0.8;
}

.cta-box-grid {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .cta-box-grid {
        grid-template-columns: auto 1fr;
    }
}

.cta-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cta-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.cta-features .icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--primary);
}

/* ===== Sidebar ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Newsletter Box */
.newsletter-box {
    background: var(--foreground);
    color: var(--background);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.newsletter-box h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.newsletter-box p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.newsletter-box input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    color: #ffffff;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.newsletter-box input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-box input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
}

/* Sidebar Section */
.sidebar-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post {
    position: relative;
    display: block;
    height: 8rem;
    overflow: hidden;
    border-radius: var(--radius);
}

.popular-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.popular-post:hover img {
    transform: scale(1.05);
}

.popular-post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
}

.popular-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
}

.popular-post h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

.popular-post:hover h4 {
    color: var(--primary);
}

.popular-post .meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Categories */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.categories-list li a:hover {
    color: var(--primary);
}

.categories-list li a:hover span:first-child {
    transform: translateX(0.25rem);
}

.categories-list li a span:first-child {
    transition: transform 0.2s;
}

.categories-list li a .count {
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Sidebar CTA */
.sidebar-cta {
    background: var(--cta-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.sidebar-cta h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    border: none;
    padding: 0;
}

.sidebar-cta p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--header-bg);
    color: var(--header-foreground);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 28rem;
}

.footer-brand .site-logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-nav h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== Button Variants ===== */
.btn-cta-inverse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--background);
    color: var(--foreground);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cta-inverse:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* ===== WordPress Specific ===== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-top: 0.5rem;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ===== CTA Light Box (Shortcode) ===== */
.cta-light-box {
    background: #f2f2f2;
    padding: 2rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.cta-light-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.cta-light-box .cta-box-grid {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .cta-light-box .cta-box-grid {
        grid-template-columns: auto 1fr;
        gap: 2rem;
    }
}

.cta-light-box .btn-cta-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.cta-light-box .btn-cta-large:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cta-light-box .cta-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cta-light-box .cta-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: #333;
    margin: 0;
}

.cta-light-box .cta-features .icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 0.1rem;
}

/* ===== CTA Dark Box (Shortcode) ===== */
.cta-dark-box {
    background: #111111;
    color: #ffffff;
    padding: 2rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.cta-dark-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.cta-dark-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cta-dark-box .btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.cta-dark-box .btn-cta-outline:hover {
    background: var(--primary);
    color: #ffffff;
}
