/*
 Theme Name:   ClashFlow
 Theme URI:    https://clashflow.com
 Description:  A modern, fast and beautiful WordPress theme designed for software documentation and tech blogs. Features a clean design with TailwindCSS, smooth animations, and comprehensive template system.
 Author:       Antigravity
 Author URI:   https://google.com
 Version:      1.0.1
 Requires at least: 6.0
 Tested up to: 6.8
 Requires PHP: 7.4
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  clashflow
 Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, custom-colors, custom-logo, editor-style, sticky-post
*/
/* Local Fonts: Inter */
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Typography for Article Content */
.entry-content {
    color: #4b5563;
    line-height: 1.8;
}

.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
    color: #111827;
    font-weight: 800;
    line-height: 1.25;
    margin-top: 2.5em;
    margin-bottom: 1em;
    letter-spacing: -0.025em;
}

.entry-content h1 { font-size: 2.5rem; }
.entry-content h2 { font-size: 2rem; border-bottom: 2px solid #f3f4f6; padding-bottom: 0.5rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.25rem; }

.entry-content p {
    font-size: 1.125rem;
    margin-bottom: 1.75rem;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.entry-content ul { list-style-type: disc; }
.entry-content ol { list-style-type: decimal; }

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid #FF8C4B;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    font-size: 1.25rem;
    color: #374151;
    background: linear-gradient(to right, rgba(255, 140, 75, 0.05), transparent);
    border-radius: 0 1rem 1rem 0;
}

.entry-content img {
    border-radius: 1.5rem;
    margin: 2.5rem auto;
    display: block;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid #fff;
}

.entry-content a {
    color: #FF8C4B;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: all 0.2s;
}

.entry-content a:hover {
    color: #ea580c;
    text-decoration-color: #ea580c;
}

.entry-content code {
    background-color: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.4rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
    color: #ea580c;
}

.entry-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 1rem;
    overflow-x: auto;
    margin-bottom: 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.entry-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* WordPress Table & Button Design System - Card Fix */
body .entry-content .wp-block-table,
body .entry-content > table {
    margin: 2.5rem 0 3.5rem !important;
    background-color: #ffffff !important;
    border-radius: 2.5rem !important;
    border: 1px solid rgba(255, 255, 255, 1) !important;
    box-shadow: 0 20px 40px -10px rgba(255, 140, 75, 0.08), 0 10px 20px -5px rgba(0, 0, 0, 0.02) !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
    padding: 0 !important; /* Remove any padding causing extra gaps */
}

/* Reset inner table when inside a block wrapper */
body .entry-content .wp-block-table table {
    margin: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: 0 none !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-style: hidden !important;
    width: 100% !important;
}

/* Force hide all default borders */
body .entry-content .wp-block-table th,
body .entry-content .wp-block-table td,
body .entry-content > table th,
body .entry-content > table td {
    border: 0 none !important;
    outline: none !important;
}

body .entry-content th {
    background-color: #FFF2EB !important;
    color: #8B4513 !important;
    font-weight: 800 !important;
    text-align: left !important;
    padding: 1.5rem 2rem !important;
    border-bottom: 2px solid #FDFBFA !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

body .entry-content td {
    padding: 1.25rem 2rem !important;
    color: #4b5563 !important;
    font-size: 1rem !important;
    border-bottom: 1px solid #F1ECE5 !important; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
}

body .entry-content tr:last-child td {
    border-bottom: 0 none !important;
}

body .entry-content tr:hover td {
    background-color: #FFFBF9 !important;
    color: #FF8C4B !important;
}

/* --- Premium Buttons - Full Override --- */
body .entry-content .wp-block-button__link {
    background: linear-gradient(135deg, #FF8C4B 0%, #FF6B35 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    padding: 1.25rem 3rem !important;
    border-radius: 9999px !important;
    border: 0 none !important;
    box-shadow: 0 15px 30px -10px rgba(255, 107, 53, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.125rem !important;
    letter-spacing: 0.025em !important;
}

body .entry-content .wp-block-button__link:hover {
    transform: translateY(-5px) scale(1.03) !important;
    box-shadow: 0 20px 40px -10px rgba(255, 107, 53, 0.6) !important;
    filter: brightness(1.1) !important;
}

/* Ensure figure doesn't have background color in block editor backend or frontend */
body .wp-block-table.is-style-stripes {
    border-bottom: 0 none !important;
}

body .wp-block-table {
    border-collapse: collapse !important;
}

/* Sticky Navigation Blur */
.nav-blur {
    background-color: rgba(249, 244, 238, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-menu a {
    transition: color 0.2s;
}

.header-menu a:hover {
    color: #FF8C4B;
}

/* Blog List Card Styles */
.article-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.article-card:hover {
    transform: translateY(-8px);
}
.category-pill.active {
    background-color: #FF8C4B;
    color: white;
    border-color: #FF8C4B;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Pagination Styles */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}
.nav-links .page-numbers {
    padding: 0.5rem 1rem;
    background-color: #fff;
    border-radius: 0.75rem;
    font-weight: 700;
    color: #4b5563;
    transition: all 0.2s;
}
.nav-links .page-numbers.current {
    background-color: #FF8C4B;
    color: #fff;
}
.nav-links .page-numbers:hover:not(.current) {
    background-color: #fff7ed;
    color: #FF8C4B;
}

/* Comments Styles - Refined for Card Design */
#comments {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Ensure children (replies) are indented and have the guide line */
.comment-list .children {
    list-style: none;
    margin-left: 3rem;
    margin-top: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.comment-list .children::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 2rem;
    width: 2px;
    background-color: #ffedd5; /* Light orange guide line */
}

.comment-card {
    background: #fff;
    padding: 2rem;
    border-radius: 2rem;
    border: 1px solid #f3f4f6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-card:hover {
    box-shadow: 0 15px 30px -5px rgba(255, 140, 75, 0.1);
    transform: translateY(-2px);
}

.comment-author img {
    border-radius: 50% !important;
}

.comment-content {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
}

/* Form Styling */
.comment-form-card {
    border: none !important;
}

.comment-respond {
    margin-bottom: 3rem;
}

#reply-title {
    display: none; /* We use a custom header or just keep it minimal */
}

/* Pagination for comments */
.comment-navigation .nav-previous a,
.comment-navigation .nav-next a {
    color: inherit;
    text-decoration: none;
}

/* Laptop Mockup Styles */
.laptop-container {
    perspective: 1000px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.laptop-screen {
    background: #2d2d2d;
    border-radius: 12px 12px 0 0;
    padding: 8px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 3px solid #1a1a1a;
}

.laptop-screen::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
}

.screen-content {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1, 0.64, 1);
}

.laptop-base {
    height: 12px;
    background: #e2e8f0;
    border-radius: 0 0 12px 12px;
    position: relative;
    width: 108%;
    margin-left: -4%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-bottom: 4px solid #cbd5e1;
}

.laptop-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 0 0 4px 4px;
}

.laptop-container:hover .screen-content img {
    transform: scale(1.1);
}
