/* ==========================================================================
   PERSPECTIVE ARTICLE COMPONENTS
   Prefix: pa- (perspective article)
   These styles are scoped to single article pages only
   ========================================================================== */

/* Info Boxes
   ========================================================================== */
.pa-info-box {
    padding: 20px 24px;
    border-radius: 10px;
    margin: 24px 0;
    border-left: 4px solid var(--accent);
    background: rgba(0, 156, 111, 0.08);
}

.pa-info-box h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--cream);
    margin: 0 0 8px;
}

.pa-info-box p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--cream-muted);
    margin: 0;
}

.pa-info-box.pa-warning {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.pa-info-box.pa-warning h4 {
    color: #fbbf24;
}

.pa-info-box.pa-success {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

.pa-info-box.pa-success h4 {
    color: #34d399;
}

/* Stats Row
   ========================================================================== */
.pa-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.pa-stat {
    text-align: center;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    min-width: 0;
    overflow: hidden;
}

.pa-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pa-stat-label {
    font-size: 13px;
    color: var(--cream-muted);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .pa-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pa-stat {
        padding: 20px 12px;
    }
    
    .pa-stat-value {
        font-size: 22px;
    }
    
    .pa-stat-label {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .pa-stats-row {
        grid-template-columns: 1fr;
    }
}

/* Accordion
   ========================================================================== */
.pa-accordion {
    margin: 24px 0;
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    overflow: hidden;
}

.pa-accordion-item {
    border-bottom: 1px solid var(--border-dark);
}

.pa-accordion-item:last-child {
    border-bottom: none;
}

.pa-accordion-header {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--cream);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: background 0.2s;
    font-family: inherit;
}

.pa-accordion-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.pa-accordion-icon {
    font-size: 20px;
    font-weight: 400;
    color: var(--accent);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.pa-accordion-item.pa-open .pa-accordion-icon {
    transform: rotate(45deg);
}

.pa-accordion-content {
    display: none;
    padding: 16px 20px 20px;
    background: rgba(255, 255, 255, 0.01);
}

.pa-accordion-item.pa-open .pa-accordion-content {
    display: block;
}

.pa-accordion-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--cream-muted);
}

/* Comparison Table
   ========================================================================== */
.pa-comparison-table {
    margin: 24px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.pa-comparison-table::-webkit-scrollbar {
    height: 6px;
}

.pa-comparison-table::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.pa-comparison-table::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.pa-comparison-table table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    font-size: 14px;
}

.pa-comparison-table th,
.pa-comparison-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-dark);
}

.pa-comparison-table th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    color: var(--cream);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pa-comparison-table td {
    color: var(--cream-muted);
}

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

.pa-comparison-table .pa-highlight {
    color: var(--accent);
    font-weight: 600;
}

.pa-comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Tabs
   ========================================================================== */
.pa-tabs {
    margin: 24px 0;
}

.pa-tab-buttons {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.pa-tab-btn {
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cream-muted);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.pa-tab-btn:hover {
    color: var(--cream);
    background: rgba(255, 255, 255, 0.05);
}

.pa-tab-btn.pa-active {
    background: var(--accent);
    color: white;
}

.pa-tab-content {
    display: none;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
}

.pa-tab-content.pa-active {
    display: block;
}

/* Feature Grid
   ========================================================================== */
.pa-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.pa-feature-item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.pa-feature-item:hover {
    border-color: rgba(0, 156, 111, 0.3);
}

.pa-feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--cream);
    margin: 0 0 8px;
}

.pa-feature-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--cream-muted);
    margin: 0;
}

/* Icon styling for feature items and general use */
.pa-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.pa-feature-item .pa-icon {
    width: 28px;
    height: 28px;
}

/* Pull Quote
   ========================================================================== */
.pa-pull-quote {
    margin: 32px 0;
    padding: 32px;
    background: linear-gradient(135deg, rgba(0, 156, 111, 0.08) 0%, rgba(0, 156, 111, 0.02) 100%);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
}

.pa-pull-quote p {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--cream);
    margin: 0 0 12px;
    font-style: italic;
}

.pa-pull-quote cite {
    font-size: 14px;
    color: var(--cream-muted);
    font-style: normal;
}

/* Prototype Embed
   ========================================================================== */
.pa-prototype {
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
}

.pa-prototype iframe {
    display: block;
    width: 100%;
    border: none;
    background: #0a0a0a;
}

.pa-prototype-caption {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
    color: var(--cream-muted);
    margin: 0;
    text-align: center;
}

/* Screenshot with Lightbox
   ========================================================================== */
.pa-screenshot {
    margin: 24px 0;
}

.pa-screenshot img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--border-dark);
    cursor: zoom-in;
}

.pa-screenshot figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--cream-muted);
    text-align: center;
}

/* Video Embed
   ========================================================================== */
.pa-video-embed {
    margin: 24px 0;
}

.pa-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
}

.pa-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.pa-video-caption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--cream-muted);
    text-align: center;
}

/* Code Block Enhancement
   ========================================================================== */
.pa-code-block {
    margin: 24px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
}

.pa-code-block pre {
    margin: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    overflow-x: auto;
}

.pa-code-block code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--cream);
}

/* Article Custom Styles Container
   ========================================================================== */
/* Article-specific styles injected here via template */
