/* Theories Pages - Light extensions on top of /writing/writing-design.css
   Used by:
   - /theories.html
*/

.theories-page .theories-article {
    margin: 0 auto;
}

.theories-hero {
    margin-bottom: 1.75rem;
}

.theories-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.theories-back-link:hover {
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.60);
    transform: translateY(-1px);
}

.theories-stack {
    display: grid;
    gap: 1.25rem;
}

.theories-card-title {
    font-family: 'Instrument Serif', ui-serif, Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-size: 1.9rem;
    line-height: 1.1;
    margin: 0 0 1.15rem 0;
    text-align: center;
}

.theories-card-text {
    margin: 1.1rem 0 0 0;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
    line-height: 1.7;
    font-size: 1.02rem;
}

.theories-card-emphasis {
    margin: 1.1rem 0 0 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 900;
    letter-spacing: 0.01em;
}

.theories-concepts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .theories-concepts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.theories-concept {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem;
    text-align: center;
}

.theories-concept-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.94);
    font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.theories-concept-subtitle {
    margin: 0.35rem 0 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.95rem;
}

.theories-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .theories-benefits {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.theories-benefit {
    border-radius: 14px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: rgba(30, 58, 138, 0.20);
    padding: 0.95rem 0.9rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
    line-height: 1.35;
    font-size: 0.95rem;
}

.theories-application-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.theories-application {
    display: grid;
    grid-template-columns: 2.4rem 1fr;
    gap: 0.75rem;
    align-items: start;
}

.theories-application-number {
    color: rgba(96, 165, 250, 0.95);
    font-weight: 950;
    font-size: 1.05rem;
    line-height: 1.4;
    text-align: right;
    padding-top: 0.1rem;
}

.theories-application-title {
    margin: 0;
    color: #ffffff;
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1.35;
    font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.theories-application-text {
    margin: 0.25rem 0 0 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.6;
    font-size: 0.98rem;
}

.theories-quote {
    padding: 2rem 1.75rem;
    border-radius: 18px;
    border: 1px solid rgba(96, 165, 250, 0.24);
    background:
        radial-gradient(640px circle at 18% 22%, rgba(37, 99, 235, 0.22) 0%, transparent 58%),
        radial-gradient(520px circle at 86% 10%, rgba(147, 51, 234, 0.18) 0%, transparent 55%),
        linear-gradient(90deg, rgba(30, 58, 138, 0.20) 0%, rgba(88, 28, 135, 0.18) 100%);
    text-align: center;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.theories-quote-text {
    margin: 0 0 1rem 0;
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.theories-quote-cite {
    color: rgba(255, 255, 255, 0.62);
    font-style: normal;
    font-weight: 800;
}

.theories-cta {
    text-align: center;
    padding-top: 0.5rem;
}

.theories-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target);
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.10);
    color: rgba(255, 255, 255, 0.90);
    text-decoration: none;
    font-weight: 950;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.theories-cta-link:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.55);
    background: rgba(96, 165, 250, 0.12);
    color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    .theories-back-link,
    .theories-cta-link {
        transition: none;
    }
}

