/**
 * Stealth Agents Article Rewriter - Frontend Styles
 * Visual elements for rewritten articles
 */

/* =====================
   STAT CARDS
   ===================== */
.apr-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.apr-stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    border-left: 4px solid #4a90a4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.apr-stat-card.highlight {
    background: linear-gradient(135deg, #4a90a4 0%, #357a8c 100%);
    color: white;
    border-left-color: #2c6575;
}

.apr-stat-number {
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 5px;
    color: #4a90a4;
}

.apr-stat-card.highlight .apr-stat-number {
    color: white;
}

.apr-stat-label {
    font-size: 0.85em;
    color: #666;
    line-height: 1.3;
}

.apr-stat-card.highlight .apr-stat-label {
    color: rgba(255,255,255,0.9);
}

/* =====================
   VISUAL BAR CHART
   ===================== */
.apr-bar-chart {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.apr-bar-chart h4 {
    margin: 0 0 15px 0;
    font-size: 1em;
    color: #333;
}

.apr-bar-item {
    margin-bottom: 12px;
}

.apr-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.apr-bar-track {
    background: #e0e0e0;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.apr-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #4a90a4 0%, #5ba3b8 100%);
    transition: width 0.5s ease;
}

/* =====================
   ENHANCED PRO TIP BOX
   ===================== */
.apr-pro-tip {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 4px solid #ffc107;
    border-radius: 0 12px 12px 0;
    padding: 20px 20px 20px 60px;
    margin: 25px 0;
    position: relative;
}

.apr-pro-tip::before {
    content: "💡";
    position: absolute;
    left: 18px;
    top: 18px;
    font-size: 1.5em;
}

.apr-pro-tip strong {
    color: #856404;
}

/* =====================
   VISUAL CHECKLIST
   ===================== */
.apr-checklist {
    background: #f0f7f0;
    border-radius: 12px;
    padding: 20px 25px;
    margin: 25px 0;
}

.apr-checklist h4 {
    margin: 0 0 15px 0;
    color: #2d5a2d;
    font-size: 1.1em;
}

.apr-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.apr-checklist li {
    padding: 8px 0 8px 30px;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.apr-checklist li:last-child {
    border-bottom: none;
}

.apr-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.1em;
}

/* =====================
   FEATURE/BENEFIT CARDS
   ===================== */
.apr-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.apr-feature-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.apr-feature-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.apr-feature-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.05em;
    color: #333;
}

.apr-feature-card p {
    margin: 0;
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
}

/* =====================
   COMPARISON VISUAL
   ===================== */
.apr-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

@media (max-width: 600px) {
    .apr-comparison {
        grid-template-columns: 1fr;
    }
}

.apr-comparison-card {
    border-radius: 12px;
    padding: 20px;
}

.apr-comparison-card.stealth {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4ebf2 100%);
    border: 2px solid #4a90a4;
}

.apr-comparison-card.other {
    background: #f5f5f5;
    border: 2px solid #ccc;
}

.apr-comparison-card h4 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    text-align: center;
}

.apr-comparison-card.stealth h4 {
    color: #4a90a4;
}

.apr-comparison-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.apr-comparison-card li {
    padding: 8px 0;
    font-size: 0.95em;
}

.apr-comparison-card.stealth li::before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
}

.apr-comparison-card.other li::before {
    content: "✗ ";
    color: #dc3545;
}

/* =====================
   QUOTE/HIGHLIGHT BOX
   ===================== */
.apr-highlight-box {
    background: linear-gradient(135deg, #4a90a4 0%, #357a8c 100%);
    color: white;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 25px 0;
    text-align: center;
}

.apr-highlight-box .big-number {
    font-size: 3em;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.apr-highlight-box .highlight-text {
    font-size: 1.1em;
    opacity: 0.95;
}

/* =====================
   NUMBERED STEPS
   ===================== */
.apr-steps {
    margin: 25px 0;
}

.apr-step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.apr-step-number {
    background: #4a90a4;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.apr-step-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.05em;
}

.apr-step-content p {
    margin: 0;
    color: #666;
}

/* =====================
   QUICK FACTS BOX
   ===================== */
.apr-quick-facts {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 20px 25px;
    margin: 25px 0;
    border-left: 4px solid #4a90a4;
}

.apr-quick-facts h4 {
    margin: 0 0 12px 0;
    color: #2d3748;
    font-size: 1em;
}

.apr-quick-facts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.apr-quick-facts li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apr-quick-facts li::before {
    content: "→";
    color: #4a90a4;
    font-weight: bold;
}

/* =====================
   ICON FEATURE CARDS
   ===================== */
.apr-icon-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.apr-icon-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.apr-icon-card-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.apr-icon-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.05em;
    color: #333;
}

.apr-icon-card p {
    margin: 0;
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
}
