/*
 Theme Name:   Gear4Run Child Theme
 Theme URI:    https://gear4run.com
 Description:  Custom child theme for Gear4Run - Running Recovery Gear website
 Author:       Gear4Run
 Author URI:   https://gear4run.com
 Template:     generatepress
 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:  gear4run-child
*/

/* ========== GOOGLE FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ========== GLOBAL STYLES ========== */
* {
    font-family: 'Poppins', sans-serif;
}

html, body {
    height: auto !important;
    overflow-x: hidden;
    overflow-y: auto !important;
}

body {
    background-color: #f9fafb;
    min-height: 100vh;
}

/* Fix any GeneratePress overflow issues */
.site,
.site-content,
#page,
#content {
    overflow: visible !important;
    height: auto !important;
}

/* ========== GRADIENT BACKGROUNDS ========== */
.gradient-bg {
    background: linear-gradient(135deg, #059669 0%, #0891b2 50%, #0284c7 100%);
}

.gradient-bg-dark {
    background: linear-gradient(135deg, #047857 0%, #0e7490 50%, #0369a1 100%);
}

/* ========== HEADER STYLES ========== */
.gear4run-header {
    background: linear-gradient(135deg, #059669 0%, #0891b2 50%, #0284c7 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

.gear4run-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.gear4run-header .subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gear4run-header .tagline {
    font-size: 1.125rem;
    color: #fde047;
    font-weight: 500;
}

/* ========== NAVIGATION STYLES ========== */
.gear4run-nav {
    background: linear-gradient(90deg, #047857 0%, #0e7490 50%, #0369a1 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.gear4run-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0;
    list-style: none;
}

.gear4run-nav .category-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gear4run-nav .category-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

/* ========== HERO SECTION ========== */
.gear4run-hero {
    background: linear-gradient(to right, #10b981, #06b6d4);
    border-bottom: 4px solid #059669;
    padding: 3rem 1rem;
    text-align: center;
}

.gear4run-hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.gear4run-hero .hero-description {
    font-size: 1.125rem;
    color: white;
    max-width: 48rem;
    margin: 0 auto 1.5rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gear4run-hero .badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.gear4run-hero .badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 700;
}

.gear4run-hero .badge i {
    color: #fde047;
    font-size: 1.25rem;
}

/* ========== FEATURED ARTICLES SECTION ========== */
.featured-articles {
    padding: 4rem 1rem;
    background: white;
}

.featured-articles .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.featured-articles .section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.featured-articles .section-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== ARTICLE CARD ========== */
.article-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 2px solid #d1fae5;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.article-card .card-image {
    height: 12rem;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.article-card .card-image i {
    font-size: 3.5rem;
    color: white;
    opacity: 0.7;
}

.article-card .card-content {
    padding: 1.5rem;
}

.article-card .card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.article-card .card-content p {
    color: #4b5563;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #0891b2 100%);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    color: white;
}

/* ========== WHY RECOVERY SECTION ========== */
.why-recovery {
    background: linear-gradient(135deg, #047857 0%, #0e7490 50%, #0369a1 100%);
    padding: 4rem 1rem;
    text-align: center;
}

.why-recovery h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.why-recovery .description {
    font-size: 1.125rem;
    color: #ccfbf1;
    max-width: 48rem;
    margin: 0 auto 2.5rem;
}

.why-recovery .benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.why-recovery .benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-recovery .benefit-icon {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.why-recovery .benefit-icon.yellow {
    background: linear-gradient(135deg, #facc15 0%, #f97316 100%);
}

.why-recovery .benefit-icon.green {
    background: linear-gradient(135deg, #34d399 0%, #22c55e 100%);
}

.why-recovery .benefit-icon.blue {
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
}

.why-recovery .benefit-icon i {
    font-size: 2rem;
    color: white;
}

.why-recovery .benefit span {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

/* ========== FOOTER STYLES ========== */
.gear4run-footer {
    background: #111827;
    color: #d1d5db;
    padding: 4rem 1rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

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

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.footer-column p {
    color: #9ca3af;
    line-height: 1.7;
}

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

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

.footer-column ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: #2dd4bf;
}

.footer-column ul li a i {
    font-size: 0.875rem;
    color: #14b8a6;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: #6b7280;
}

.footer-bottom .heart {
    color: #ef4444;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 768px) {
    .gear4run-header h1 {
        font-size: 4rem;
    }
    
    .gear4run-header .subtitle {
        font-size: 1.875rem;
    }
    
    .gear4run-hero h2 {
        font-size: 3rem;
    }
    
    .gear4run-hero .hero-description {
        font-size: 1.25rem;
    }
    
    .featured-articles .section-header h2 {
        font-size: 2.5rem;
    }
    
    .why-recovery h2 {
        font-size: 2.5rem;
    }
    
    .gear4run-hero .badges {
        gap: 2rem;
    }
    
    .why-recovery .benefits {
        gap: 4rem;
    }
}

/* ========== HIDE GENERATEPRESS DEFAULTS ========== */
.site-header,
.main-navigation,
.site-footer {
    display: none !important;
}

/* ========== CONTAINER ========== */
.gear4run-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========== CONTENT + SIDEBAR LAYOUT ========== */
.site-content {
    padding: 2rem 0;
}

/* Header, Nav and Footer are already full-width by default */

.content-sidebar-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-sidebar-wrapper .content-area {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 330px);
}

.content-sidebar-wrapper .sidebar {
    width: 300px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .content-sidebar-wrapper {
        flex-direction: column;
    }
    
    .content-sidebar-wrapper .content-area,
    .content-sidebar-wrapper .sidebar {
        width: 100%;
        max-width: 100%;
    }
}

/* ========== ARCHIVE PAGE STYLES ========== */
.archive-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.archive-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.archive-description {
    color: #6b7280;
    font-size: 1rem;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.archive-post-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.archive-post-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.archive-post-card .post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.archive-post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.archive-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.archive-post-card .post-content {
    padding: 1.5rem;
}

.archive-post-card .entry-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.archive-post-card .entry-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.archive-post-card .entry-title a:hover {
    color: #059669;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.entry-meta i {
    color: #10b981;
    margin-right: 0.25rem;
}

.entry-summary {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.entry-footer {
    margin-top: 1rem;
}

/* ========== SINGLE POST STYLES ========== */
.single-post {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 2rem;
}

.single-post .entry-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.single-post .entry-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.single-thumbnail {
    margin: -2rem -2rem 2rem -2rem;
    max-height: 400px;
    overflow: hidden;
}

.single-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post .entry-content {
    color: #374151;
    line-height: 1.8;
    font-size: 1.0625rem;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post .entry-content p {
    margin-bottom: 1.25rem;
}

.single-post .entry-content a {
    color: #059669;
    text-decoration: underline;
}

.single-post .entry-content a:hover {
    color: #047857;
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.single-post .entry-content li {
    margin-bottom: 0.5rem;
}

.single-post .entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.post-tags {
    color: #6b7280;
}

.post-tags i {
    color: #10b981;
    margin-right: 0.5rem;
}

.post-tags a {
    color: #059669;
    text-decoration: none;
}

.post-tags a:hover {
    text-decoration: underline;
}

/* ========== POST NAVIGATION ========== */
.post-navigation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.post-navigation .nav-label i {
    color: #10b981;
}

.post-navigation a {
    color: #1f2937;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-navigation a:hover {
    color: #059669;
}

/* ========== PAGINATION ========== */
.pagination-wrapper {
    margin-top: 2rem;
}

.pagination-wrapper .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-wrapper .page-numbers:hover {
    background: #f3f4f6;
    border-color: #10b981;
    color: #059669;
}

.pagination-wrapper .page-numbers.current {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    border-color: transparent;
    color: white;
}

/* ========== SIDEBAR STYLES ========== */
.sidebar .widget {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar .widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #10b981;
}

.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul li a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar .widget ul li a:hover {
    color: #059669;
}

/* ========== NO POSTS ========== */
.no-posts {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.no-posts h2 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.no-posts p {
    color: #6b7280;
}
