/* scire.dev — Neomorphism Soft UI App */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #E8ECF0;
    color: #4A5568;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.65;
}

/* ── Neomorphic Primitives ── */

.neu-card {
    background: #E8ECF0;
    border-radius: 16px;
    box-shadow: 8px 8px 16px #c8ccd0, -8px -8px 16px #ffffff;
    padding: 2rem;
}

.neu-inset {
    background: #E8ECF0;
    border-radius: 12px;
    box-shadow: inset 4px 4px 8px #c8ccd0, inset -4px -4px 8px #ffffff;
    padding: 0.75rem 1rem;
    border: none;
}

.neu-button {
    background: #E8ECF0;
    border-radius: 12px;
    box-shadow: 4px 4px 8px #c8ccd0, -4px -4px 8px #ffffff;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.2s, color 0.2s;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #4A5568;
}

.neu-button:active,
.neu-button.active {
    box-shadow: inset 4px 4px 8px #c8ccd0, inset -4px -4px 8px #ffffff;
    color: #6366F1;
}

.neu-button:hover {
    color: #A5B4FC;
}

/* ── Section Heading ── */

.section-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #2D3748;
    text-align: center;
    margin-bottom: 2rem;
}

/* ── Hero Zone ── */

.hero {
    padding: 5rem 2rem 3rem;
    display: flex;
    justify-content: center;
}

.hero-card {
    text-align: center;
    max-width: 520px;
    width: 100%;
}

.wordmark {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.3;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1rem;
    color: #4A5568;
    margin-bottom: 1.5rem;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-icon {
    flex-shrink: 0;
}

.search-placeholder {
    font-size: 0.9rem;
    color: #C8CCD0;
}

/* ── Topic Library ── */

.topics {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.topic-card {
    text-align: center;
    padding: 2rem 1.5rem;
    transition: box-shadow 0.3s, transform 0.3s;
}

.topic-card:hover {
    transform: translateY(-2px);
    box-shadow: 10px 10px 20px #c8ccd0, -10px -10px 20px #ffffff;
}

.progress-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
}

.progress-ring {
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #D1D5DB;
    stroke-width: 3;
}

.ring-fill {
    fill: none;
    stroke: #6366F1;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-pct {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #6366F1;
}

.topic-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2D3748;
    margin-bottom: 0.25rem;
}

.topic-count {
    font-size: 0.85rem;
    color: #6366F1;
}

/* ── Quick Reference ── */

.reference {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.ref-layout {
    display: flex;
    gap: 1.5rem;
}

.method-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.method-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    transition: box-shadow 0.2s, color 0.2s;
}

.ref-content {
    flex: 1;
}

.ref-method {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 1rem;
    color: #6366F1;
    margin-bottom: 0.75rem;
}

.ref-path {
    color: #4A5568;
}

.ref-desc {
    font-size: 0.9rem;
    color: #4A5568;
    margin-bottom: 1rem;
    line-height: 1.65;
}

.code-block {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #2D3748;
    overflow-x: auto;
    white-space: nowrap;
}

/* ── Tutorials ── */

.tutorials {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.tutorial-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tutorial-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    transition: box-shadow 0.3s, transform 0.3s;
}

.tutorial-row:hover {
    transform: translateY(-1px);
    box-shadow: 10px 10px 20px #c8ccd0, -10px -10px 20px #ffffff;
}

.tutorial-info {
    flex: 1;
    min-width: 200px;
}

.tutorial-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2D3748;
    margin-bottom: 0.35rem;
}

.tech-tag {
    display: inline-block;
    background: #E8ECF0;
    box-shadow: 2px 2px 4px #c8ccd0, -2px -2px 4px #ffffff;
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 0.75rem;
    color: #6366F1;
    margin-right: 0.5rem;
}

.read-time {
    font-size: 0.8rem;
    color: #C8CCD0;
}

.read-btn {
    font-size: 0.85rem;
    color: #6366F1;
    text-decoration: none;
}

.read-btn:hover {
    color: #A5B4FC;
}

/* ── Footer ── */

.footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.footer-card {
    text-align: center;
}

.footer-tagline {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #2D3748;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.flink {
    font-size: 0.85rem;
    color: #6366F1;
    text-decoration: none;
    transition: color 0.2s;
}

.flink:hover {
    color: #A5B4FC;
}

.footer-copy {
    font-size: 0.7rem;
    color: #C8CCD0;
}

/* ── Responsive ── */

@media (max-width: 640px) {
    .topic-grid {
        grid-template-columns: 1fr;
    }
    .ref-layout {
        flex-direction: column;
    }
    .method-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ── Fade-in Animation ── */

.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
