/* Zero2Maker shared design system */

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.technical-label {
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-gradient {
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.05), transparent);
}

/* Buttons */
.z2m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
}

.z2m-btn-primary {
    background-color: #0f172a;
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.z2m-btn-primary:hover {
    background-color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.15);
}

.z2m-btn-secondary {
    background-color: #fff;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.z2m-btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.z2m-btn-accent {
    background-color: #2563eb;
    color: #fff;
}

.z2m-btn-accent:hover {
    background-color: #1d4ed8;
}

.z2m-btn-ghost {
    background: transparent;
    color: #475569;
}

.z2m-btn-ghost:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.btn-premium {
    transition: all 0.3s ease;
}

.btn-premium:hover {
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

/* Cards & forms */
.z2m-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.z2m-input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: #0f172a;
    background: #fff;
}

.z2m-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Navigation */
.z2m-nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.z2m-nav-link:hover {
    color: #2563eb;
}

.z2m-nav-link-active {
    color: #0f172a;
    font-weight: 600;
    background: #f1f5f9;
}

.z2m-mobile-backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.z2m-mobile-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.z2m-mobile-drawer {
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.z2m-mobile-drawer.is-open {
    transform: translateX(0);
}

body.z2m-nav-open {
    overflow: hidden;
}

.z2m-translate-slot {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
}

.z2m-lang-select {
    appearance: none;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") no-repeat right 0.55rem center / 1rem;
    color: #4b5563;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    max-width: 11rem;
}

.z2m-lang-select:hover {
    background-color: #f9fafb;
}

.z2m-lang-select:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.z2m-google-translate-host {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Google Translate widget */
#google_translate_element .goog-te-gadget,
#google_translate_element_mobile .goog-te-gadget {
    font-family: 'Inter', sans-serif !important;
    font-size: 0 !important;
}

#google_translate_element .goog-te-gadget-simple,
#google_translate_element_mobile .goog-te-gadget-simple {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    background: #fff !important;
    box-shadow: none !important;
}

#google_translate_element .goog-te-gadget-simple:hover,
#google_translate_element_mobile .goog-te-gadget-simple:hover {
    background: #f9fafb !important;
}

#google_translate_element .goog-te-gadget-simple img,
#google_translate_element_mobile .goog-te-gadget-simple img {
    display: none !important;
}

#google_translate_element .goog-te-gadget-simple .goog-te-menu-value,
#google_translate_element_mobile .goog-te-gadget-simple .goog-te-menu-value {
    margin: 0 !important;
}

#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span,
#google_translate_element_mobile .goog-te-gadget-simple .goog-te-menu-value span {
    color: #4b5563 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span:last-child,
#google_translate_element_mobile .goog-te-gadget-simple .goog-te-menu-value span:last-child {
    border-left: none !important;
}

#google_translate_element .goog-te-gadget-simple .goog-te-menu-value:before,
#google_translate_element_mobile .goog-te-gadget-simple .goog-te-menu-value:before {
    content: "Select Language";
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    margin-right: 0.25rem;
}

.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Continue learning hero */
.z2m-continue-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #2563eb 100%);
    border-radius: 1rem;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.z2m-continue-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 55%);
    pointer-events: none;
}

.z2m-continue-hero-inner {
    position: relative;
    z-index: 1;
}

/* Registration wizard */
.z2m-step-indicator {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.z2m-step-dot {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: #e2e8f0;
    transition: background 0.2s ease;
}

.z2m-step-dot.is-active,
.z2m-step-dot.is-done {
    background: #2563eb;
}

.z2m-register-step {
    display: none;
}

.z2m-register-step.is-active {
    display: block;
}

/* Responsive video embed (16:9) — markup also uses Tailwind absolute inset-0 on iframe */
.z2m-video-embed {
    position: relative;
    width: 100%;
    max-width: 100%;
}

@supports (aspect-ratio: 16 / 9) {
    .z2m-video-embed {
        aspect-ratio: 16 / 9;
        height: auto;
        padding-bottom: 0;
    }
}

@supports not (aspect-ratio: 16 / 9) {
    .z2m-video-embed {
        height: 0;
        padding-bottom: 56.25%;
    }
}

.z2m-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.z2m-challenge-header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 55%, #eff6ff 100%);
}

.z2m-skill-pill {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
}

.z2m-skill-pill-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.z2m-skill-pill-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.z2m-disclosure-summary {
    list-style: none;
}

.z2m-disclosure-summary::-webkit-details-marker {
    display: none;
}

.z2m-disclosure-summary::after {
    content: '+';
    float: right;
    font-weight: 800;
    color: #64748b;
}

.z2m-disclosure[open] > .z2m-disclosure-summary::after {
    content: '−';
}

.z2m-challenge-step {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
}

.z2m-challenge-step.is-active {
    background: #dbeafe;
    color: #1d4ed8;
}

.z2m-challenge-step.is-done {
    background: #ecfdf5;
    color: #047857;
}

.z2m-challenge-step-arrow {
    color: #94a3b8;
}

.z2m-brief-step-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.z2m-brief-step-pill.is-active {
    background: #dbeafe;
    color: #1d4ed8;
}

.z2m-brief-step-pill.is-done {
    background: #ecfdf5;
    color: #047857;
}

.z2m-disclosure .you-learned-section {
    border: 0;
    background: transparent;
    padding: 0;
}

.z2m-disclosure .you-learned-section h2 {
    display: none;
}

/* Learning Journey Engine */
.lj-engine .lj-welcome-back {
    animation: lj-fade-in 0.3s ease;
}

.lj-stage-mission h2 {
    line-height: 1.35;
}

@keyframes lj-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Skill Matrix Report */
.sm-ring {
    --pct: 0;
    --color: #2563eb;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: conic-gradient(var(--color) calc(var(--pct) * 1%), #e2e8f0 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sm-ring::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 999px;
    background: #fff;
}

.sm-ring-label {
    position: relative;
    z-index: 1;
    font-size: 0.65rem;
    font-weight: 800;
    color: #0f172a;
}

.sm-student-card:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
