/* ─── GLASSMORPHIC CARDS & INTROS ─── */
.card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
}

.intro-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.25rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.75rem;
}

.badge-dev {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ─── STEP BY STEP GUIDE ─── */
.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 2.5rem;
    bottom: -1rem;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
}

.step-num {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-purple);
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.step.completed .step-num {
    background: var(--accent-green);
    color: var(--bg-dark);
    border-color: var(--accent-green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.step-body {
    flex: 1;
    padding-top: 0.25rem;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* ─── CHECKBOX LIST ─── */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 0.4rem 0;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 1.25rem;
    width: 1.25rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    margin-right: 0.75rem;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--accent-purple);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.checkbox-container input:checked ~ .checkbox-label {
    color: var(--text-secondary);
    text-decoration: line-through;
}

/* ─── CODE BLOCK & BUTTONS ─── */
.code-block {
    background: #05070c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    margin: 0.75rem 0;
    position: relative;
    overflow-x: auto;
}

.code-block code {
    color: #d1d5db;
}

.copy-btn {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    border-radius: 0.35rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* ─── DATABASE STATUS & PROGRESS ─── */
.db-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.db-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse 1.5s infinite;
}

.progress-container {
    margin-bottom: 2.5rem;
}

.progress-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
    border-radius: 9999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ─── POST TYPE BUTTONS ─── */
.post-type-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.6rem 0.8rem;
    text-align: center;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    color: #9ca3af;
    transition: all 0.2s ease;
    user-select: none;
}

.post-type-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.post-type-btn.active {
    background: rgba(24, 119, 242, 0.15);
    border-color: #1877f2;
    color: #1877f2;
}
