/* ================================================================
   RideLink WebGen2 — 가이드 전용 스타일
   ================================================================ */

/* ================================================================ Guide Hub Grid */
.guide-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem; margin-top: 3rem;
}
.guide-card {
    position: relative; padding: 2rem; border-radius: 20px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    transition: all 0.4s var(--ease-out-expo); overflow: hidden;
    text-decoration: none; color: inherit; cursor: pointer;
}
.guide-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 20px;
    background: radial-gradient(ellipse at top left, rgba(0, 242, 255, 0.05), transparent 60%);
    opacity: 0; transition: opacity 0.4s;
}
.guide-card:hover { border-color: rgba(0, 242, 255, 0.15); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.guide-card:hover::before { opacity: 1; }
.guide-card .card-emoji { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.guide-card .card-title { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.guide-card .card-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
.guide-card .card-meta {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; color: var(--text-muted); font-weight: 500;
}
.guide-card .card-meta svg { width: 14px; height: 14px; stroke: var(--text-muted); }
.guide-card .card-arrow {
    position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0, 242, 255, 0.08); border: 1px solid rgba(0, 242, 255, 0.15);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; opacity: 0;
}
.guide-card:hover .card-arrow { opacity: 1; transform: translateY(-50%) translateX(4px); }
.guide-card .card-arrow svg { width: 16px; height: 16px; stroke: var(--primary); }

/* ================================================================ Step Timeline */
.step-timeline { margin-top: 3rem; position: relative; }
.step-timeline::before {
    content: ''; position: absolute; left: 28px; top: 0; bottom: 0;
    width: 2px; background: linear-gradient(180deg, var(--accent), var(--primary), transparent);
    opacity: 0.3;
}
.step-item {
    display: flex; gap: 2rem; margin-bottom: 3rem; position: relative;
}
.step-number-circle {
    flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
    background: var(--glass-bg); border: 2px solid rgba(0, 242, 255, 0.2);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 800;
    color: var(--primary); position: relative; z-index: 1;
    transition: all 0.4s;
}
.step-item:hover .step-number-circle {
    background: rgba(0, 242, 255, 0.1); border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}
.step-content { flex: 1; }
.step-content h3 {
    font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 700;
    margin-bottom: 0.75rem;
}
.step-content p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }
.step-content ul { list-style: none; padding: 0; }
.step-content ul li {
    font-size: 0.9rem; color: var(--text-secondary); padding: 0.3rem 0;
    padding-left: 1.2rem; position: relative;
}
.step-content ul li::before { content: '→'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.step-screenshot {
    width: 100%; max-width: 360px; aspect-ratio: 9/16; border-radius: 16px;
    background: var(--bg-elevated); border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 0.85rem; overflow: hidden;
    margin-top: 1rem;
}
.step-screenshot img { width: 100%; height: 100%; object-fit: cover; }

/* ================================================================ Tab System */
.tab-nav {
    display: flex; gap: 0.5rem; margin-bottom: 2rem;
    padding: 0.4rem; background: var(--glass-bg); border-radius: 12px;
    border: 1px solid var(--glass-border); overflow-x: auto;
}
.tab-btn {
    padding: 0.7rem 1.5rem; border-radius: 8px; border: none; background: transparent;
    color: var(--text-secondary); font-size: 0.9rem; font-weight: 600;
    cursor: pointer; white-space: nowrap; transition: all 0.3s;
    font-family: inherit;
}
.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.tab-btn.active {
    background: rgba(0, 242, 255, 0.1); color: var(--primary);
    border: 1px solid rgba(0, 242, 255, 0.2);
}
.tab-panel { display: none; animation: fadeInUp 0.4s var(--ease-out-expo); }
.tab-panel.active { display: block; }

/* ================================================================ Info Card */
.info-card {
    padding: 2rem; border-radius: 16px; background: var(--glass-bg);
    border: 1px solid var(--glass-border); margin-bottom: 1.5rem;
}
.info-card h4 { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.info-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
.info-card .icon-badge {
    display: inline-block; padding: 0.25rem 0.75rem; border-radius: 100px;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    background: rgba(0,242,255,0.1); color: var(--primary);
    border: 1px solid rgba(0,242,255,0.15); margin-bottom: 1rem;
}

/* ================================================================ Protocol Table */
.protocol-table {
    width: 100%; border-collapse: collapse; margin-top: 1rem;
}
.protocol-table th, .protocol-table td {
    padding: 0.75rem 1rem; text-align: left; font-size: 0.85rem;
    border-bottom: 1px solid var(--glass-border);
}
.protocol-table th { color: var(--primary); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.protocol-table td { color: var(--text-secondary); }
.protocol-table tr:hover td { color: var(--text-primary); }

/* ================================================================ Tip Box */
.tip-box {
    padding: 1.25rem 1.5rem; border-radius: 12px; margin: 1.5rem 0;
    background: rgba(0, 230, 118, 0.06); border-left: 3px solid var(--accent);
}
.tip-box .tip-label { font-size: 0.75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.tip-box p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ================================================================ Nav Buttons */
.guide-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 4rem; padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}
.guide-nav-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: 12px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
    transition: all 0.3s; cursor: pointer; text-decoration: none;
}
.guide-nav-btn:hover { border-color: rgba(0, 242, 255, 0.2); color: var(--primary); transform: translateY(-2px); }
.guide-nav-btn svg { width: 16px; height: 16px; stroke: currentColor; }

/* ================================================================ FAQ Accordion */
.faq-list { max-width: 800px; margin: 3rem auto 0; }
.faq-item { border-bottom: 1px solid var(--glass-border); }
.faq-question {
    width: 100%; padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center;
    background: none; border: none; color: var(--text-primary); font-size: 1.05rem; font-weight: 600;
    cursor: pointer; text-align: left; font-family: inherit; transition: color 0.3s;
}
.faq-question:hover { color: var(--primary); }
.faq-icon { font-size: 1.5rem; transition: transform 0.3s; color: var(--text-muted); flex-shrink: 0; margin-left: 1rem; }
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out-expo); }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; padding-bottom: 1.5rem; }

/* ================================================================ Feature List */
.feature-list {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1rem; margin: 1.5rem 0;
}
.feature-item {
    padding: 1.25rem; border-radius: 12px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    transition: border-color 0.3s;
}
.feature-item:hover { border-color: rgba(0, 242, 255, 0.15); }
.feature-item .feat-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.feature-item h5 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.feature-list-3col { grid-template-columns: repeat(3, 1fr); }

/* ================================================================ Responsive */
@media (max-width: 768px) {
    .guide-grid { grid-template-columns: 1fr; }
    .step-item { flex-direction: column; gap: 1rem; }
    .step-timeline::before { left: 27px; }
    .tab-nav { flex-wrap: nowrap; }
    .feature-list { grid-template-columns: 1fr; }
    .feature-list-3col { grid-template-columns: repeat(2, 1fr); }
    .guide-nav { flex-direction: column; gap: 1rem; }
}
