/* Nusto Template - Neumorphism with Advanced Mobile UX */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #6366f1;
    --secondary: #a855f7;
    --accent: #ec4899;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #e5e7eb;
    --shadow-light: #ffffff;
    --shadow-dark: #bebebe;
}

body { 
    font-family: 'Outfit', sans-serif;
    line-height: 1.7; 
    padding: 20px;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.container { 
    max-width: 720px;
    margin: 0 auto;
}

/* Neumorphic card */
.neuro-card {
    background: var(--bg);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 
        12px 12px 24px var(--shadow-dark),
        -12px -12px 24px var(--shadow-light);
    animation: pressIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pressIn {
    0% { 
        transform: scale(0.95);
        box-shadow: 
            6px 6px 12px var(--shadow-dark),
            -6px -6px 12px var(--shadow-light);
    }
    100% { 
        transform: scale(1);
        box-shadow: 
            12px 12px 24px var(--shadow-dark),
            -12px -12px 24px var(--shadow-light);
    }
}

h1 { 
    color: var(--text); 
    font-size: 1.75rem;
    margin-bottom: 16px; 
    line-height: 1.2;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}



/* Pressed effect on tap */

article { 
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

article p {
    margin-bottom: 16px;
}

article strong {
    color: var(--primary);
    font-weight: 700;
}

article ul, article ol {
    margin: 16px 0;
    padding-left: 24px;
}

article li {
    margin-bottom: 10px;
}

article li::marker {
    color: var(--primary);
    font-weight: 700;
}

/* Neumorphic related section */
.related-questions {
    margin-top: 24px;
}

.related-questions h2 {
    color: var(--text);
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-questions h2::before {
    content: "";
    width: 6px;
    height: 28px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 3px;
    box-shadow: 
        2px 2px 4px var(--shadow-dark),
        -2px -2px 4px var(--shadow-light);
}

.related-questions ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-questions li {
    margin: 0;
}

/* Neumorphic buttons with 3D press */
.related-questions a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600;
    font-size: 0.9375rem;
    min-height: 70px;
    box-shadow: 
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
    position: relative;
}

/* Gradient accent */
.related-questions a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 16px 0 0 16px;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Icon indicator */
.related-questions a::after {
    content: "→";
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 800;
    margin-left: auto;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
}

/* Pressed state - inset shadow */
.related-questions a:active {
    box-shadow: 
        inset 6px 6px 12px var(--shadow-dark),
        inset -6px -6px 12px var(--shadow-light);
    transform: scale(0.98);
}

.related-questions a:active::after {
    box-shadow: 
        inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
}

/* Hover state */
.related-questions a:hover::before {
    opacity: 1;
}

.related-questions a:hover::after {
    transform: translateX(4px);
}

footer {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-light);
    box-shadow: 
        inset 6px 6px 12px var(--shadow-dark),
        inset -6px -6px 12px var(--shadow-light);
    line-height: 1.6;
}

footer p {
    margin-bottom: 8px;
}

footer strong {
    color: var(--text);
}

/* Smooth transitions */
* {
    transition: box-shadow 0.3s ease;
}

/* Accessibility - focus states */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Desktop enhancements */
@media (min-width: 768px) {
    body {
        padding: 40px 20px;
    }
    
    .neuro-card {
        padding: 40px;
        border-radius: 32px;
        margin-bottom: 28px;
        box-shadow: 
            16px 16px 32px var(--shadow-dark),
            -16px -16px 32px var(--shadow-light);
    }
    
    h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    article {
        font-size: 1.125rem;
    }
    
    .related-questions h2 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    
    .related-questions ul {
        gap: 20px;
    }
    
    .related-questions a {
        padding: 22px 24px;
        font-size: 1.0625rem;
        min-height: 80px;
    }
    
    .related-questions a::after {
        width: 44px;
        height: 44px;
        font-size: 1.75rem;
    }
}

/* Dark neumorphism */
@media (prefers-color-scheme: dark) {
    :root {
        --text: #f1f5f9;
        --text-light: #cbd5e0;
        --bg: #1e293b;
        --shadow-light: #2d3b52;
        --shadow-dark: #0f1621;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* CTA Block Styles - Nusto Neumorphism */
.cta-block {
    margin: 32px 0;
    padding: 32px;
    border-radius: 24px;
    text-align: center;
    background: var(--bg);
    animation: pressIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pressIn {
    0% { 
        transform: scale(0.95);
        box-shadow: 
            6px 6px 12px var(--shadow-dark),
            -6px -6px 12px var(--shadow-light);
    }
    100% { 
        transform: scale(1);
        box-shadow: 
            12px 12px 24px var(--shadow-dark),
            -12px -12px 24px var(--shadow-light);
    }
}

.cta-style-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 
        12px 12px 24px rgba(99, 102, 241, 0.3),
        -4px -4px 12px rgba(255, 255, 255, 0.05);
}

.cta-style-secondary {
    box-shadow: 
        inset 6px 6px 12px var(--shadow-dark),
        inset -6px -6px 12px var(--shadow-light);
    color: var(--text);
}

.cta-style-accent {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    box-shadow: 
        12px 12px 24px rgba(236, 72, 153, 0.3),
        -4px -4px 12px rgba(255, 255, 255, 0.05);
}

.cta-style-minimal {
    background: var(--bg);
    box-shadow: 
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
    color: var(--text);
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.cta-style-primary .cta-title,
.cta-style-accent .cta-title {
    color: white;
}

.cta-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-style-primary .cta-button {
    background: white;
    color: var(--primary);
    box-shadow: 
        6px 6px 12px rgba(0, 0, 0, 0.1),
        -2px -2px 8px rgba(255, 255, 255, 0.1);
}

.cta-style-primary .cta-button:active {
    transform: scale(0.96);
    box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.1),
        inset -2px -2px 4px rgba(255, 255, 255, 0.1);
}

.cta-style-primary .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        10px 10px 20px rgba(0, 0, 0, 0.15),
        -4px -4px 12px rgba(255, 255, 255, 0.1);
}

.cta-style-secondary .cta-button {
    background: var(--bg);
    color: var(--primary);
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
}

.cta-style-secondary .cta-button:hover {
    box-shadow: 
        10px 10px 20px var(--shadow-dark),
        -10px -10px 20px var(--shadow-light);
}

.cta-style-accent .cta-button {
    background: white;
    color: var(--accent);
    box-shadow: 
        6px 6px 12px rgba(0, 0, 0, 0.1),
        -2px -2px 8px rgba(255, 255, 255, 0.1);
}

.cta-style-accent .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        10px 10px 20px rgba(0, 0, 0, 0.15),
        -4px -4px 12px rgba(255, 255, 255, 0.1);
}

.cta-style-minimal .cta-button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 
        6px 6px 12px rgba(99, 102, 241, 0.3),
        -2px -2px 8px rgba(255, 255, 255, 0.1);
}

.cta-style-minimal .cta-button:hover {
    box-shadow: 
        10px 10px 20px rgba(99, 102, 241, 0.4),
        -4px -4px 12px rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .cta-block {
        padding: 40px;
        border-radius: 32px;
    }
    
    .cta-title {
        font-size: 1.875rem;
        margin-bottom: 18px;
    }
    
    .cta-text {
        font-size: 1.125rem;
    }
    
    .cta-button {
        padding: 18px 44px;
        font-size: 1.0625rem;
    }
}


/* Back Navigation */
.top-nav {
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    font-size: 0.95em;
    transition: background 0.3s;
}

.back-link:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Quick Answer Box */
.quick-answer {
    background: #f0f7ff;
    border-left: 4px solid #3b82f6;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.quick-answer-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #1e40af;
}

.quick-answer p {
    margin: 0;
    line-height: 1.6;
}

/* Detailed Content */
.detailed-content {
    margin: 30px 0;
}

.detailed-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.detailed-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.detailed-content ul, 
.detailed-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.detailed-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Questions Section */
.questions-section {
    margin: 30px 0;
}

.questions-section h2 {
    margin-bottom: 20px;
    font-size: 1.8em;
}
