/* Onboarding CSS - Slopcraft Style */

/* ===== LAYOUT & STRUCTURE ===== */
.ob-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 100px 20px 60px;
    /* Space for fixed progress bar + nav */
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Progress Bar */
.ob-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #111;
    z-index: 100;
}

.ob-progress-bar {
    height: 100%;
    background: var(--yellow, #f5c842);
    width: 0%;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--yellow, #f5c842);
}

/* Screens */
.ob-screen {
    display: none;
    animation: slideUp 0.4s ease-out;
}

.ob-screen.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back link */
.ob-back {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-family: var(--font-mono, monospace);
    transition: color 0.2s;
}

.ob-back:hover {
    color: var(--yellow, #f5c842);
}

/* ===== TYPOGRAPHY ===== */
.ob-title {
    font-family: var(--font-pixel);
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 2px 2px #000;
}

.ob-subtitle {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.5;
}

/* ===== FORMS ===== */
.ob-field {
    margin-bottom: 24px;
    position: relative;
}

.ob-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    margin-bottom: 8px;
    color: var(--text-body);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ob-input,
.ob-select {
    width: 100%;
    background: var(--bg-surface);
    border: 2px solid var(--border);
    padding: 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
    /* Minecraft style sharp corners */
}

.ob-input:focus,
.ob-select:focus {
    border-color: var(--accent);
    background: #1a221a;
}

.ob-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.ob-optional {
    color: #555;
    font-size: 10px;
    margin-left: 6px;
}

.ob-char-count {
    position: absolute;
    right: 0;
    top: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    color: #555;
}

/* ===== BUTTONS ===== */
.ob-btn {
    width: 100%;
    padding: 18px;
    background: var(--accent);
    color: #000;
    font-family: var(--font-pixel);
    font-size: 12px;
    border: 4px solid #000;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow:
        inset -4px -4px rgba(0, 0, 0, 0.4),
        inset 4px 4px rgba(255, 255, 255, 0.3);
    transition: transform 0.1s;
    margin-top: 16px;
}

.ob-btn:hover {
    filter: brightness(1.1);
}

.ob-btn:active {
    transform: translateY(2px);
}

.ob-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    border-color: #222;
}

.ob-btn-google {
    width: 100%;
    padding: 14px;
    background: #fff;
    color: #333;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    border-radius: 4px;
    transition: background 0.2s;
}

.ob-btn-google:hover {
    background: #f0f0f0;
}

.ob-skip {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

/* ===== CARDS SELECTION (Tone & Apps) ===== */
.ob-tone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.ob-tone-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.ob-tone-card:hover {
    border-color: #666;
    transform: translateY(-2px);
}

.ob-tone-card.selected {
    border-color: var(--accent);
    background: rgba(93, 186, 59, 0.1);
}

.ob-tone-name {
    font-family: var(--font-pixel);
    font-size: 10px;
    color: var(--yellow);
    margin-bottom: 8px;
}

.ob-tone-desc {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #aaa;
    line-height: 1.4;
}

/* Plans */
.ob-plans {
    margin-bottom: 24px;
}

.ob-plan-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    padding: 24px;
    position: relative;
    cursor: pointer;
}

.ob-plan-card.selected {
    border-color: var(--accent);
}

.ob-plan-badge {
    position: absolute;
    top: -12px;
    right: 12px;
    background: var(--yellow);
    color: #000;
    font-family: var(--font-pixel);
    font-size: 8px;
    padding: 6px 10px;
    border: 2px solid #000;
}

.ob-plan-price {
    font-family: var(--font-pixel);
    font-size: 24px;
    /* Increased */
    color: #fff;
    margin-bottom: 8px;
}

.ob-plan-price span {
    font-size: 12px;
    color: #888;
}

.ob-plan-sub {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* Apps Grid */
.ob-apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.ob-app-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.ob-app-card:hover {
    border-color: #666;
}

.ob-app-card.connected {
    border-color: var(--accent);
    background: rgba(93, 186, 59, 0.1);
}

.ob-app-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ob-app-icon img {
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.2s;
}

.ob-app-card.connected .ob-app-icon img {
    filter: none;
    opacity: 1;
}

.ob-app-name {
    font-family: var(--font-pixel);
    font-size: 8px;
    margin-bottom: 4px;
    color: #fff;
}

.ob-app-sub {
    font-family: var(--font-mono);
    font-size: 9px;
    color: #666;
    display: none;
    /* Keep clean */
}

/* Checkmark based on status */
.ob-app-status::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    margin-top: 8px;
}

.ob-app-card.connected .ob-app-status::after {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
}

/* ===== DEPLOY SCREEN ===== */
.ob-deploy-container {
    text-align: center;
    padding: 20px 0;
}

.ob-mascot {
    margin-bottom: 32px;
    animation: float 3s ease-in-out infinite;
}

.ob-mascot svg {
    display: block;
    margin: 0 auto;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.ob-deploy-text {
    font-family: var(--font-pixel);
    font-size: 16px;
    color: var(--yellow);
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

.ob-deploy-steps {
    max-width: 320px;
    margin: 0 auto;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ob-deploy-step {
    padding-left: 20px;
    position: relative;
    transition: color 0.3s;
}

.ob-deploy-step::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #444;
}

.ob-deploy-step.active {
    color: var(--accent-bright);
}

.ob-deploy-step.active::before {
    content: '›';
    color: var(--accent-bright);
    animation: blink 0.5s infinite;
}

.ob-deploy-step.done {
    color: var(--text);
    text-decoration: line-through;
    opacity: 0.5;
}

.ob-deploy-step.done::before {
    content: '✓';
    color: var(--accent);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Deploy Done State */
.ob-deploy-done {
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.ob-deploy-done .ob-title {
    font-size: 24px;
    margin-bottom: 8px;
}

#deployMessage {
    margin-bottom: 32px;
}

.ob-btn-telegram {
    background: #229ED9;
    /* Telegram blue */
    color: #fff;
    border-color: #0d6ba1;
}

.ob-btn-telegram:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(34, 158, 217, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {

    .ob-tone-grid,
    .ob-apps-grid {
        grid-template-columns: 1fr;
    }

    .ob-container {
        padding-top: 80px;
    }

    .ob-title {
        font-size: 16px;
    }
}