/*
Theme Name: GeneratePress Child - AI Tag Generator Edition
Theme URI: https://generatepress.com
Description: Ultra-fast custom GeneratePress Child Theme designed to match the modern SaaS aesthetic of YouTube tools, customized post content typography, bullet lists, and tool preview cards.
Author: Antigravity AI
Author URI: https://example.com
Template: generatepress
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child
*/

/* ==========================================================================
   1. SaaS Design System & CSS Variables
   ========================================================================== */
:root {
    --gp-primary: #ff0000;
    --gp-primary-dark: #d90000;
    --gp-accent: #7c3aed;
    --gp-accent-gradient: linear-gradient(135deg, #ff0000 0%, #7c3aed 100%);
    --gp-bg-main: #f8fafc;
    --gp-card-bg: #ffffff;
    --gp-text-main: #0f172a;
    --gp-text-muted: #64748b;
    --gp-text-body: #334155;
    --gp-border: #e2e8f0;
    --gp-radius: 12px;
    --gp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --gp-shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --gp-font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dark Mode Theme Tokens */
@media (prefers-color-scheme: dark) {
    :root {
        --gp-bg-main: #0b0f19;
        --gp-card-bg: #1e293b;
        --gp-text-main: #f8fafc;
        --gp-text-muted: #94a3b8;
        --gp-text-body: #cbd5e1;
        --gp-border: #334155;
    }
    
    body {
        background-color: var(--gp-bg-main) !important;
        color: var(--gp-text-main) !important;
    }

    .inside-article, .sidebar .widget, .site-header, .site-footer {
        background-color: var(--gp-card-bg) !important;
        color: var(--gp-text-main) !important;
        border-color: var(--gp-border) !important;
    }

    .entry-content p, .entry-content li {
        color: var(--gp-text-body) !important;
    }
}

/* ==========================================================================
   2. Global Typography & Core Layout
   ========================================================================== */
body {
    font-family: var(--gp-font-family);
    background-color: var(--gp-bg-main);
    color: var(--gp-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--gp-font-family);
    font-weight: 700;
    color: var(--gp-text-main);
    letter-spacing: -0.02em;
}

a {
    color: var(--gp-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: var(--gp-primary-dark);
}

/* ==========================================================================
   3. Customized Post & Article Content Typography (Image 1, 2, 3 Matching)
   ========================================================================== */
.entry-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--gp-text-body);
}

/* Post H2 Headings */
.entry-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--gp-text-main);
    margin-top: 42px;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    position: relative;
    padding-left: 16px;
    border-left: 4px solid var(--gp-primary);
}

/* Post H3 Headings */
.entry-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gp-text-main);
    margin-top: 32px;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

/* Post Paragraphs */
.entry-content p {
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--gp-text-body);
}

/* Styled Bullet Lists */
.entry-content ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 20px 0 28px 0 !important;
}

.entry-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gp-text-body);
}

.entry-content ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background: rgba(255, 0, 0, 0.1);
    color: var(--gp-primary);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.entry-content ul li strong {
    color: var(--gp-text-main);
    font-weight: 700;
}

/* ==========================================================================
   4. Tool Card Preview Shortcode Styling (.ytd-tool-preview-card)
   ========================================================================== */
.ytd-tool-preview-card {
    background: var(--gp-card-bg);
    border: 1px solid var(--gp-border);
    border-radius: 14px;
    padding: 24px;
    margin: 28px 0;
    box-shadow: var(--gp-shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ytd-tool-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gp-accent-gradient);
}

.ytd-tool-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--gp-primary);
}

.ytd-tool-card-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.ytd-tool-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 0, 0, 0.08);
    color: var(--gp-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.ytd-tool-card-info h4 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--gp-text-main);
}

.ytd-tool-card-info p {
    margin: 0;
    font-size: 14px;
    color: var(--gp-text-muted);
    line-height: 1.4;
}

.ytd-tool-card-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 6px;
    text-transform: uppercase;
}

.ytd-tool-card-right {
    flex-shrink: 0;
}

.ytd-tool-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gp-accent-gradient) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 12px 20px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.25) !important;
    transition: all 0.2s ease !important;
}

.ytd-tool-card-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.35) !important;
}

@media (max-width: 600px) {
    .ytd-tool-preview-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ytd-tool-card-right {
        width: 100%;
    }
    
    .ytd-tool-card-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   5. Top Header & Navigation Bar
   ========================================================================== */
.site-header {
    background-color: var(--gp-card-bg);
    border-bottom: 1px solid var(--gp-border);
    box-shadow: var(--gp-shadow-sm);
    position: relative;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gp-accent-gradient);
    z-index: 10;
}

.main-title a {
    font-weight: 800;
    font-size: 22px;
    background: var(--gp-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.main-navigation {
    background: transparent;
}

.main-navigation .main-nav ul li a {
    font-weight: 600;
    font-size: 14px;
    color: var(--gp-text-main);
    padding: 0 16px;
    transition: all 0.2s ease;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a {
    color: var(--gp-primary);
    background-color: rgba(255, 0, 0, 0.05);
    border-radius: 6px;
}

/* ==========================================================================
   6. Main Content Area & Cards
   ========================================================================== */
.inside-article {
    background: var(--gp-card-bg);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    box-shadow: var(--gp-shadow-md);
    padding: 40px !important;
    margin-bottom: 30px;
}

/* ==========================================================================
   7. Footer Styling
   ========================================================================== */
.site-footer {
    background-color: var(--gp-card-bg);
    border-top: 1px solid var(--gp-border);
    color: var(--gp-text-muted);
    font-size: 13px;
    padding: 30px 0;
}

.site-info {
    text-align: center;
}

.site-info a {
    color: var(--gp-text-muted);
    font-weight: 600;
}

.site-info a:hover {
    color: var(--gp-primary);
}
