/* ============================================
   SINGLE THEORY PAGE STYLES
   MobLand.Pro
   ============================================ */

/* CSS Variables */
:root {
    --theory-hero-svg: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='20' stroke='%23C9A227' stroke-width='0.5' fill='none' opacity='0.06'/%3E%3Cpath d='M30 15 L30 25 M30 35 L30 36' stroke='%23C9A227' stroke-width='0.5' opacity='0.08'/%3E%3C/svg%3E");
    --theory-hero-accent: rgba(201, 162, 39, 0.03);
}

[data-theme="light"] {
    --theory-hero-svg: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='20' stroke='%230D0D0D' stroke-width='0.5' fill='none' opacity='0.04'/%3E%3Cpath d='M30 15 L30 25 M30 35 L30 36' stroke='%230D0D0D' stroke-width='0.5' opacity='0.06'/%3E%3C/svg%3E");
    --theory-hero-accent: rgba(13, 13, 13, 0.02);
}

/* ============================================
   THEORY HERO SECTION
   ============================================ */
.theory-hero {
    padding: 140px 40px 60px;
    background:
        var(--theory-hero-svg),
        linear-gradient(180deg, var(--theory-hero-accent) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-color);
}

.theory-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* Breadcrumb */
.theory-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-family: var(--font-headline);
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.theory-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.theory-breadcrumb a:hover {
    color: var(--harrigan-gold);
}

.theory-breadcrumb svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-secondary);
    opacity: 0.5;
}

/* Type Badge */
.theory-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: var(--font-headline);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.theory-type-badge svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.theory-type-badge.theory {
    background: rgba(201, 162, 39, 0.15);
    color: var(--harrigan-gold);
}

.theory-type-badge.analysis {
    background: rgba(100, 149, 237, 0.15);
    color: #6495ed;
}

.theory-type-badge.prediction {
    background: rgba(147, 112, 219, 0.15);
    color: #9370db;
}

.theory-type-badge.mystery {
    background: rgba(220, 20, 60, 0.15);
    color: #dc143c;
}

/* Spoiler Warning Badge */
.theory-spoiler-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(220, 20, 60, 0.15);
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 4px;
    font-family: var(--font-headline);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #dc143c;
    margin-left: 12px;
}

.theory-spoiler-flag svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
}

/* Title */
.theory-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: 3px;
}

/* Tagline */
.theory-tagline {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Meta Info */
.theory-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.theory-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theory-author-avatar {
    width: 40px;
    height: 40px;
    background: var(--harrigan-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headline);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--midnight-black);
    overflow: hidden;
}

.theory-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theory-author-name {
    font-family: var(--font-headline);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.theory-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-headline);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.theory-meta-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-secondary);
    opacity: 0.7;
}

/* ============================================
   CONFIDENCE PANEL
   ============================================ */
.theory-confidence-panel {
    max-width: 800px;
    margin: -30px auto 0;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

.theory-confidence-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.theory-confidence-main {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    min-width: 280px;
}

.theory-confidence-icon {
    width: 56px;
    height: 56px;
    background: var(--harrigan-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.theory-confidence-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--midnight-black);
}

.theory-confidence-info h4 {
    font-family: var(--font-headline);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.theory-confidence-info p {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.theory-confidence-meter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 150px;
}

.theory-confidence-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--harrigan-gold);
    line-height: 1;
}

.theory-confidence-bar {
    width: 150px;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.theory-confidence-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.theory-confidence-fill.high {
    width: 85%;
    background: linear-gradient(90deg, var(--harrigan-gold), #d4af37);
}

.theory-confidence-fill.medium {
    width: 60%;
    background: linear-gradient(90deg, #6495ed, #87ceeb);
}

.theory-confidence-fill.low {
    width: 35%;
    background: linear-gradient(90deg, #9370db, #dda0dd);
}

/* ============================================
   THEORY CONTENT
   ============================================ */
.theory-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* ============================================
   EVIDENCE SECTION
   ============================================ */
.theory-evidence {
    margin: 50px 0;
    padding: 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.theory-evidence-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.theory-evidence-header svg {
    width: 24px;
    height: 24px;
    stroke: var(--harrigan-gold);
}

.theory-evidence-header h3 {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0;
}

.theory-evidence-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.theory-evidence-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.theory-evidence-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.theory-evidence-number {
    width: 28px;
    height: 28px;
    background: var(--harrigan-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headline);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--midnight-black);
    flex-shrink: 0;
}

.theory-evidence-content h4 {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.theory-evidence-content p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.theory-evidence-source {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-family: var(--font-headline);
    font-size: 0.75rem;
    color: var(--harrigan-gold);
}

.theory-evidence-source svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
}

/* ============================================
   COUNTER ARGUMENTS
   ============================================ */
.theory-counter {
    margin: 50px 0;
    padding: 30px;
    background: rgba(220, 20, 60, 0.05);
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 8px;
}

.theory-counter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.theory-counter-header svg {
    width: 24px;
    height: 24px;
    stroke: #dc143c;
}

.theory-counter-header h3 {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #dc143c;
    margin: 0;
}

.theory-counter p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.theory-counter p:last-child {
    margin-bottom: 0;
}

/* ============================================
   VERDICT BOX
   ============================================ */
.theory-verdict {
    margin: 50px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, rgba(201, 162, 39, 0.05) 100%);
    border: 2px solid var(--harrigan-gold);
    border-radius: 8px;
    text-align: center;
}

.theory-verdict-label {
    font-family: var(--font-headline);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--harrigan-gold);
    margin-bottom: 8px;
}

.theory-verdict-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.theory-verdict p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   TAGS
   ============================================ */
.theory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 50px 0;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.theory-tags a {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-family: var(--font-headline);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.theory-tags a:hover {
    border-color: var(--harrigan-gold);
    color: var(--harrigan-gold);
}

/* ============================================
   AUTHOR BIO
   ============================================ */
.theory-author-bio {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 30px 0;
}

.theory-author-bio-avatar {
    width: 64px;
    height: 64px;
    background: var(--harrigan-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--midnight-black);
    flex-shrink: 0;
    overflow: hidden;
}

.theory-author-bio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theory-author-bio-content h4 {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.theory-author-bio-content h4 span {
    font-weight: 400;
    color: var(--text-secondary);
}

.theory-author-bio-content p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   RELATED THEORIES
   ============================================ */
.theory-related {
    padding: 80px 40px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.theory-related-container {
    max-width: 1000px;
    margin: 0 auto;
}

.theory-related-header {
    text-align: center;
    margin-bottom: 40px;
}

.theory-related-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--harrigan-gold);
    color: var(--midnight-black);
    font-family: var(--font-headline);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 15px;
}

.theory-related-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-primary);
    letter-spacing: 3px;
}

.theory-related-header h2 span {
    color: var(--harrigan-gold);
}

.theory-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Related Theory Card */
.theory-related-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.theory-related-card:hover {
    border-color: var(--harrigan-gold);
    transform: translateY(-3px);
}

.theory-related-card-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: var(--font-headline);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.theory-related-card-type.theory {
    background: rgba(201, 162, 39, 0.15);
    color: var(--harrigan-gold);
}

.theory-related-card-type.analysis {
    background: rgba(100, 149, 237, 0.15);
    color: #6495ed;
}

.theory-related-card-type.mystery {
    background: rgba(220, 20, 60, 0.15);
    color: #dc143c;
}

.theory-related-card-type.prediction {
    background: rgba(147, 112, 219, 0.15);
    color: #9370db;
}

.theory-related-card h3 {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.theory-related-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.theory-related-card h3 a:hover {
    color: var(--harrigan-gold);
}

.theory-related-card p {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
}

.theory-related-card-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-headline);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .theory-hero {
        padding: 120px 20px 40px;
    }

    .theory-title {
        font-size: 1.75rem;
    }

    .theory-meta {
        gap: 15px;
    }

    .theory-confidence-panel {
        padding: 0 20px;
    }

    .theory-confidence-card {
        flex-direction: column;
        text-align: center;
    }

    .theory-confidence-main {
        flex-direction: column;
        text-align: center;
    }

    .theory-confidence-meter {
        align-items: center;
    }

    .theory-content {
        padding: 40px 20px;
    }

    .theory-evidence,
    .theory-counter,
    .theory-verdict {
        padding: 20px;
    }

    .theory-author-bio {
        flex-direction: column;
        text-align: center;
    }

    .theory-author-bio-avatar {
        margin: 0 auto;
    }

    .theory-spoiler-flag {
        display: flex;
        margin: 12px 0 0;
    }

    .theory-related {
        padding: 60px 20px;
    }
}

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */
[data-theme="light"] .theory-confidence-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .theory-evidence {
    background: var(--bg-secondary);
}

[data-theme="light"] .theory-related-card {
    background: var(--bg-primary);
}
