/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background-color: #f7fafc;
    padding: 20px;
}

/* ==========================================================================
   2. LAYOUT CONTAINER
   ========================================================================== */
.blog-container {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   3. TYPOGRAPHY & HEADINGS
   ========================================================================== */
.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.3;
    margin-bottom: 15px;
}

h2 {
    font-size: 1.8rem;
    color: #1a202c;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
}

/* Accent line under H2 for professional look */
h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #3182ce; /* Tech Blue Accent */
    border-radius: 2px;
    margin-top: 8px;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #4a5568;
}

.lead-text {
    font-size: 1.25rem;
    color: #2d3748;
    font-weight: 500;
    line-height: 1.8;
}

/* Decorative Horizontal Rule */
hr {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 25px 0;
}

/* ==========================================================================
   4. META INFO & LINKS
   ========================================================================== */
.meta-info {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 10px;
}

.meta-info time {
    font-weight: 600;
    color: #4a5568;
}

.meta-info a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
}

.meta-info a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   5. LISTS (Ranking Criteria)
   ========================================================================== */
.ranking-criteria ul {
    list-style: none; /* Custom styling */
    margin-bottom: 30px;
    padding-left: 5px;
}

.ranking-criteria li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #4a5568;
}

/* Styled checkmark or bullet replacement */
.ranking-criteria li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    color: #38a169; /* Success Green */
    font-weight: bold;
    font-size: 1.1rem;
}

.ranking-criteria strong {
    color: #1a202c;
}

/* ==========================================================================
   6. BLOCKQUOTE (Callout Box)
   ========================================================================== */
blockquote {
    background-color: #ebf8ff; /* Light Blue tint */
    border-left: 4px solid #3182ce;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    font-style: normal;
}

blockquote strong {
    color: #2b6cb0;
}

/* ==========================================================================
   7. RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .blog-container {
        margin: 10px auto;
        padding: 20px;
        border-radius: 8px;
    }

    .main-title {
        font-size: 1.85rem;
    }

    h2 {
        font-size: 1.45rem;
    }

    .lead-text {
        font-size: 1.1rem;
    }
    
    p, .ranking-criteria li {
        font-size: 1rem;
    }
}
/* ==========================================================================
   8. AI CAPABILITIES LIST (Custom Bullets)
   ========================================================================== */
.ai-capabilities {
    list-style: none;
    margin: 20px 0;
    padding-left: 5px;
}

.ai-capabilities li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: #4a5568;
}

.ai-capabilities li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 1rem;
}

/* ==========================================================================
   9. BOT CARDS ARCHITECTURE
   ========================================================================== */
.bot-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-top: 35px;
    margin-bottom: 35px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

/* Badges for ranking */
.bot-badge {
    position: absolute;
    top: -14px;
    left: 25px;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.5px;
    color: #ffffff;
}

/* Badge Color Themes */
.premium-rank { border-left: 5px solid #3182ce; }
.premium-rank .bot-badge { background-color: #3182ce; }

.free-rank { border-left: 5px solid #38a169; }
.free-rank .bot-badge { background-color: #38a169; }

.custom-rank { border-left: 5px solid #805ad5; }
.custom-rank .bot-badge { background-color: #805ad5; }

/* Typo inside cards */
.bot-name {
    font-size: 1.6rem;
    color: #1a202c;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Override global h2 accent style for bot card headings */
.bot-card h3::after { display: none; }

.bot-tagline {
    font-size: 1.05rem;
    color: #718096;
    font-style: italic;
    margin-bottom: 25px;
}

/* Two-column structural grid for features */
.bot-details {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.detail-box {
    flex: 1;
}

.border-left {
    border-left: 1px solid #edf2f7;
    padding-left: 30px;
}

.detail-box h4 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 12px;
    font-weight: 600;
}

.detail-box ul {
    list-style: none;
}

.detail-box li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #4a5568;
}

.detail-box li::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: #4a5568;
    font-weight: bold;
}

.highlight-text {
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 600;
    background: #f7fafc;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid #cbd5e0;
}

.detail-box p {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
}

/* ==========================================================================
   10. RESPONSIVE CARDS (Mobile Fixes)
   ========================================================================== */
@media (max-width: 768px) {
    .bot-details {
        flex-direction: column;
        gap: 20px;
    }

    .border-left {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #edf2f7;
        padding-top: 20px;
    }
    
    .bot-card {
        padding: 25px 20px;
    }
}
/* Color Themes Expansion for Bots 4-9 */
.arbitrage-rank { border-left: 5px solid #dd6b20; } /* Orange */
.arbitrage-rank .bot-badge { background-color: #dd6b20; }

.beginner-rank { border-left: 5px solid #319795; } /* Teal */
.beginner-rank .bot-badge { background-color: #319795; }

.nocode-rank { border-left: 5px solid #e53e3e; } /* Crimson Red */
.nocode-rank .bot-badge { background-color: #e53e3e; }

.pro-rank { border-left: 5px solid #2d3748; } /* Charcoal Gray */
.pro-rank .bot-badge { background-color: #2d3748; }

/* Color Themes Expansion for Bots 10-20 */
.portfolio-rank { border-left: 5px solid #d69e2e; } /* Gold Yellow */
.portfolio-rank .bot-badge { background-color: #d69e2e; }

.passive-rank { border-left: 5px solid #3182ce; } /* Deep Blue */
.passive-rank .bot-badge { background-color: #3182ce; }

.opensource-rank { border-left: 5px solid #4a5568; } /* Slate Gray */
.opensource-rank .bot-badge { background-color: #4a5568; }

.chart-rank { border-left: 5px solid #b7791f; } /* Dark Gold */
.chart-rank .bot-badge { background-color: #b7791f; }

.analytics-rank { border-left: 5px solid #d53f8c; } /* Tech Pink/Magenta */
.analytics-rank .bot-badge { background-color: #d53f8c; }

/* ==========================================================================
   11. BINANCE GRID & VERIFIED LISTS STYLING
   ========================================================================== */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.advantage-item {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #4a5568;
    border-top: 3px solid #f6e05e; /* Binance Yellow Accents */
}

.advantage-item strong {
    color: #1a202c;
    display: block;
    margin-bottom: 4px;
}

.verified-list {
    list-style: none;
    margin: 20px 0;
    padding-left: 0;
}

.verified-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #4a5568;
}

.verified-list li::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 0.85rem;
    color: #3182ce;
}

/* ==========================================================================
   12. SEO CONVERSION TABLE DESIGN
   ========================================================================== */
.table-container {
    width: 100%;
    overflow-x: auto; /* Fallback for mobile screens */
    margin: 30px 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 1rem;
}

.comparison-table th {
    background-color: #f7fafc;
    color: #2d3748;
    font-weight: 700;
    padding: 14px 18px;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.comparison-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
    font-size: 0.95rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background-color: #f8fafc;
}

.closing-note {
    font-style: italic;
    color: #718096;
    margin-top: 20px;
}

/* ==========================================================================
   13. RESPONSIVE REFINEMENTS
   ========================================================================== */
@media (max-width: 640px) {
    .advantage-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table th, .comparison-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}
/* ==========================================================================
   14. QUANTITATIVE MATRIX & SPECIALIZATION DESIGNS
   ========================================================================== */
.quantitative-matrix th {
    background-color: #edf2f7;
    color: #1a202c;
}

.quantitative-matrix td strong {
    color: #2b6cb0;
}

/* Specialized Tags Display Layout */
.specialized-tag-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
    margin: 25px 0;
}

.tag-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
}

.tag-card strong {
    color: #1a202c;
    font-size: 1rem;
}

/* Border Accent Extensions Linking back to Core Bot Palette */
.border-premium { border-left: 4px solid #3182ce; }
.border-free { border-left: 4px solid #38a169; }
.border-custom { border-left: 4px solid #805ad5; }
.border-arbitrage { border-left: 4px solid #dd6b20; }
.border-beginner { border-left: 4px solid #319795; }
.border-nocode { border-left: 4px solid #e53e3e; }
.border-pro { border-left: 4px solid #2d3748; }
.border-portfolio { border-left: 4px solid #d69e2e; }
.border-passive { border-left: 4px solid #3182ce; }
.border-opensource { border-left: 4px solid #4a5568; }
.border-chart { border-left: 4px solid #b7791f; }
.border-analytics { border-left: 4px solid #d53f8c; }

/* ==========================================================================
   15. RISK WARNING CALLOUT (High Contrast)
   ========================================================================== */
.danger-callout {
    background-color: #fff5f5; /* Crimson tint */
    border: 1px solid #fed7d7;
    border-left: 4px solid #e53e3e;
    padding: 22px;
    margin: 35px 0;
    border-radius: 6px;
}

.danger-callout h4 {
    color: #c53030;
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.danger-callout p {
    color: #9b2c2c;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Responsive updates */
@media (max-width: 768px) {
    .tag-card {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   16. ADVANCED UTILITY INTERFACES (Security, Trend Analytics & GPT)
   ========================================================================== */
.security-matrix .advantage-item {
    border-top: 3px solid #38a169; /* Security Green Alert Bar */
}

.security-list li::before {
    content: "🛡️";
    font-size: 0.95rem;
}

.analytics-flow li::before {
    content: "🧠";
}

.gpt-grid .advantage-item {
    border-top: 3px solid #805ad5; /* AI Purple Accent Bar */
}

.analytics-list li::before {
    content: "✨";
    color: #805ad5;
}

.strategy-table th {
    background-color: #edf2f7;
    color: #2d3748;
}

/* Structural adjustment for dense layout presentation */
.analytics-flow li {
    margin-bottom: 14px;
    line-height: 1.6;
}

/* Final layout protection bounds */
@media (max-width: 768px) {
    .advantage-grid {
        gap: 10px;
    }
  }
  
