/*
Theme Name: TheLinuxClub Child
Description: Custom child theme for TheLinuxClub website with modern Linux-focused design
Author: TheLinuxClub Team
Version: 1.0.0
Template: technews-codebase
*/

/* Import parent theme styles */
@import url("../technews-codebase/style.css");

/* ==========================================================================
   TheLinuxClub Custom Styles
   ========================================================================== */

/* Color Palette Variables */
:root {
    --bg-light: #F8FAFC;
    --primary-dark: #1E293B;
    --accent-blue: #38BDF8;
    --accent-amber: #FACC15;
    --text-dark: #0F172A;
    --text-gray: #64748B;
    --text-light-gray: #94A3B8;
    --border-light: #E2E8F0;
    --white: #ffffff;
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Exact mockup font implementation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    background-color: #F8FAFC !important;
    color: #0F172A !important;
    line-height: 1.6 !important;
}

/* Override all WordPress and theme fonts with mockup font */
*, *::before, *::after,
html, body,
h1, h2, h3, h4, h5, h6,
p, div, span, a, li, td, th,
.post-title, .entry-title, .archive-title,
.widget-title, .sidebar h3, .sidebar h4,
.menu a, .nav a, input, textarea, button,
.site-title, .site-description,
.wp-block-heading, .wp-block-paragraph,
.comment-content, .entry-content,
ul, ol, dl, dt, dd, pre, code,
table, caption, thead, tbody, tfoot, tr, th, td,
fieldset, legend, label, select, option,
.primary-menu, .navigation, .nav, .navbar,
.header, .footer, .main, .content, .sidebar,
.widget, .widget-area, .textwidget {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Force font inheritance */
body * {
    font-family: inherit !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1E293B 0%, #38BDF8 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
    color: white !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.hero-section p {
    font-size: 1.2rem !important;
    margin-bottom: 2rem !important;
    opacity: 0.9;
    color: white !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
    cursor: pointer !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    display: inline-block !important;
}

.btn-primary {
    background: #FACC15 !important;
    color: #0F172A !important;
    border: none !important;
}

.btn-secondary {
    background: transparent !important;
    color: white !important;
    border: 2px solid white !important;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* Main Content Layout - Homepage Full Width (No Sidebar) */
.home .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.home .main-content {
    display: block !important;
    width: 100% !important;
    margin: 3rem auto;
}

.home .content-wrapper {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Featured Distros */
.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1E293B;
    border-bottom: 3px solid #38BDF8;
    padding-bottom: 0.5rem;
}

.distros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.distro-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.distro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.distro-logo {
    width: 60px;
    height: 60px;
    background: #38BDF8;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.distro-card h3 {
    margin-bottom: 0.5rem;
    color: #1E293B;
}

.distro-card p {
    font-size: 0.9rem;
    color: #64748B;
    margin-bottom: 1rem;
}

.download-btn {
    background: #38BDF8;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #0EA5E9;
}

/* Tutorials Section */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tutorial-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.tutorial-card:hover {
    transform: translateY(-3px);
}

.tutorial-thumb {
    height: 150px;
    background: linear-gradient(45deg, #1E293B, #38BDF8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.tutorial-content {
    padding: 1.5rem;
}

.tutorial-tag {
    background: #FACC15;
    color: #0F172A;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.tutorial-card h3 {
    margin-bottom: 0.5rem;
    color: #1E293B;
}

.tutorial-card h3 a {
    color: #1E293B;
    text-decoration: none;
}

.tutorial-card h3 a:hover {
    color: #38BDF8;
}

.tutorial-card p {
    color: #64748B;
    margin-bottom: 1rem;
}

.tutorial-meta {
    font-size: 0.9rem;
    color: #94A3B8;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.editors-pick {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #FACC15;
    color: #0F172A;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-card h3 {
    margin-bottom: 0.5rem;
    color: #1E293B;
}

.news-card h3 a {
    color: #1E293B;
    text-decoration: none;
}

.news-card h3 a:hover {
    color: #38BDF8;
}

.news-meta {
    font-size: 0.9rem;
    color: #94A3B8;
    margin-bottom: 1rem;
}

/* Newsletter Section */
.newsletter-section {
    background: #1E293B;
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: 3rem;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.newsletter-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-section p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form-main {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form-main input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    outline: none;
}

.newsletter-form-main button {
    background: #FACC15;
    color: #0F172A;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.trust-badges {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form-main {
        flex-direction: column;
    }
}
/* ==========================================================================
   Browse by Category Section
   ========================================================================== */

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--text-dark);
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: var(--text-dark);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.category-card p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.category-count {
    background: var(--accent-blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Section Footer & View More */
.section-footer {
    text-align: center;
    margin-top: 2rem;
}

.view-more-btn {
    background: #1E293B !important;
    color: #ffffff !important;
    padding: 1rem 2rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: background-color 0.3s, transform 0.3s !important;
    display: inline-block !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.view-more-btn:hover {
    background: #38BDF8 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   Header Styles - Force Override All Parent Theme Styles
   ========================================================================== */

/* Header Container */
.site-header,
#masthead,
header.site-header,
.header-area {
    background: #1E293B !important;
    color: #ffffff !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    padding: 1rem 0 !important;
    width: 100% !important;
    border: none !important;
    margin: 0 !important;
}

.header-container,
.site-header .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 2rem !important;
    width: 100% !important;
}

/* Site Logo/Branding */
.site-logo,
.site-branding a,
.site-branding .site-title,
.site-branding .site-title a,
.custom-logo-link,
.site-title a {
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: #38BDF8 !important;
    text-decoration: none !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    outline: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.site-logo:hover,
.site-branding a:hover,
.site-title a:hover {
    color: #38BDF8 !important;
    text-decoration: none !important;
}

.site-branding {
    flex-shrink: 0 !important;
}

/* Navigation Menu */
.main-navigation,
#site-navigation {
    display: flex !important;
    align-items: center !important;
}

.main-navigation ul,
#primary-menu,
.menu {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 2rem !important;
    background: none !important;
    box-shadow: none !important;
}

.main-navigation li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.main-navigation a,
.menu a {
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px !important;
    transition: background-color 0.3s ease !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 500 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.main-navigation a:hover,
.menu a:hover {
    background-color: #38BDF8 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Header Search */
.header-search {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 0.5rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    min-width: 200px !important;
    border: none !important;
    box-shadow: none !important;
}

.header-search input,
.search-field {
    border: none !important;
    outline: none !important;
    color: #0F172A !important;
    background: transparent !important;
    flex: 1 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    padding: 0 !important;
}

.header-search .search-icon,
.search-submit {
    color: #64748B !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
}

/* Override any parent theme button/link styles */
.site-header a,
.site-header button {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    text-shadow: none !important;
    background-image: none !important;
}

/* Force override for stubborn parent styles */
body .site-header .site-branding a,
body .site-header .site-title a,
body .site-logo,
body .site-header .menu a {
    color: #38BDF8 !important;
    background: transparent !important;
    border: none !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

body .site-header .menu a {
    color: #ffffff !important;
}

body .site-header .menu a:hover {
    background-color: #38BDF8 !important;
    color: #ffffff !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
    }

    .main-navigation ul {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #1E293B !important;
        flex-direction: column !important;
        padding: 1rem !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
        z-index: 999 !important;
        gap: 0 !important;
    }

    .main-navigation ul.show {
        display: flex !important;
    }

    .main-navigation li {
        margin: 0 !important;
        width: 100% !important;
    }

    .main-navigation a {
        display: block !important;
        padding: 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 100% !important;
    }

    .header-container {
        flex-wrap: wrap !important;
        gap: 1rem !important;
    }

    .header-search {
        order: 3 !important;
        flex: 1 1 100% !important;
        margin-top: 1rem !important;
        min-width: 150px !important;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1rem !important;
    }

    .site-logo {
        font-size: 1.25rem !important;
    }
}

/* ==========================================================================
   Page Header Styles
   ========================================================================== */

.page-header {
    background: var(--white);
    padding: 2rem 0;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.page-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Read More Link */
.read-more {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--primary-dark);
    text-decoration: none;
}
