/* ===================================
   WORKSHOP 03: CUSTOM STYLES
   Styles specific to Excel/VBA workshop
   =================================== */

/* Philosophy Box */
.philosophy-box {
    display: flex;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

.philosophy-icon {
    font-size: 2.5rem;
    color: #6366f1;
    flex-shrink: 0;
}

.philosophy-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    color: #6366f1;
    font-weight: 700;
}

[data-theme="dark"] .philosophy-content h3 {
    color: #a5b4fc;
}

.philosophy-content p {
    margin: 0 0 0.75rem 0;
    line-height: 1.7;
    font-size: 1.05rem;
}

.philosophy-content .highlight {
    font-weight: 600;
    color: #6366f1;
    font-size: 1.1rem;
}

[data-theme="dark"] .philosophy-content .highlight {
    color: #a5b4fc;
}

/* Info Grid (for cards) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: var(--surface-color, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: 16px;
    padding: 1.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

[data-theme="dark"] .info-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.info-card .card-icon {
    font-size: 2rem;
    color: #6366f1;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.2rem;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.info-card p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-secondary);
}

.info-card.highlight-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border-color: rgba(16, 185, 129, 0.3);
}

.info-card.highlight-card .card-icon {
    color: #10b981;
}

/* Comparison Table */
.comparison-table {
    margin: 2.5rem 0;
}

.comparison-table h3 {
    font-size: 1.3rem;
    margin: 0 0 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-color, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .comparison-table table {
    background: rgba(255, 255, 255, 0.05);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

[data-theme="dark"] .comparison-table th,
[data-theme="dark"] .comparison-table td {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.comparison-table th {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .comparison-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

/* Note Box */
.note-box {
    display: flex;
    gap: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.note-box > i {
    color: #f59e0b;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.note-box p {
    margin: 0;
    line-height: 1.7;
}

/* Prerequisites Grid (simple) */
.prerequisites-grid {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.prereq-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--surface-color, #f8f9fa);
    border-radius: 12px;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.05));
}

[data-theme="dark"] .prereq-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.prereq-item i {
    color: #10b981;
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

/* Prerequisites Cards (expandable) */
.prereq-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prereq-card {
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface-color, #ffffff);
    transition: box-shadow 0.2s;
}

[data-theme="dark"] .prereq-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.prereq-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.prereq-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    transition: background 0.2s;
}

.prereq-card-header::-webkit-details-marker {
    display: none;
}

.prereq-card-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .prereq-card-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.prereq-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}

.prereq-icon.excel-icon { background: linear-gradient(135deg, #10b981, #059669); }
.prereq-icon.vscode-icon { background: linear-gradient(135deg, #007acc, #0098ff); }
.prereq-icon.python-icon { background: linear-gradient(135deg, #306998, #ffd43b); }
.prereq-icon.trust-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }

.prereq-info {
    flex: 1;
}

.prereq-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.prereq-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.prereq-chevron {
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.prereq-card[open] .prereq-chevron {
    transform: rotate(180deg);
}

.prereq-card-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
    margin-top: -1px;
    padding-top: 1.25rem;
}

[data-theme="dark"] .prereq-card-content {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* Setup Steps */
.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setup-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.setup-step-num {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.setup-step strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.setup-step p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.setup-step a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.setup-step a:hover {
    text-decoration: underline;
}

.setup-step code {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Consolas', 'Monaco', monospace;
}

[data-theme="dark"] .setup-step code {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

/* Prereq Note */
.prereq-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.08);
    border-left: 4px solid #3b82f6;
}

.prereq-note i {
    color: #3b82f6;
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.prereq-note span {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.prereq-note.warning {
    background: rgba(245, 158, 11, 0.08);
    border-left-color: #f59e0b;
}

.prereq-note.warning i {
    color: #f59e0b;
}

.prereq-note.macos {
    background: rgba(99, 102, 241, 0.08);
    border-left-color: #6366f1;
}

.prereq-note.macos i {
    color: #6366f1;
    font-size: 1.3rem;
}

/* Phases Container */
.phases-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.phase {
    display: flex;
    gap: 1.25rem;
    background: var(--surface-color, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: 16px;
    padding: 1.75rem;
    border-left: 4px solid #10b981;
}

[data-theme="dark"] .phase {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    border-left-color: #10b981;
}

.phase-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.phase-content h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.phase-content p {
    margin: 0 0 1rem 0;
    line-height: 1.7;
    color: var(--text-secondary);
}

.phase-content p:last-child {
    margin-bottom: 0;
}

/* Prompt Example Box */
.prompt-example {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1rem 0;
}

.prompt-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.prompt-text {
    margin: 0;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
    padding-left: 1.5rem;
    border-left: 3px solid #6366f1;
}

/* AI Response Box */
.ai-response {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.response-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 0.35rem;
}

.ai-response p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Folder Structure */
.folder-structure {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
}

.folder-structure .folder,
.folder-structure .file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0;
    color: #d4d4d4;
}

.folder-structure .folder i {
    color: #f59e0b;
}

.folder-structure .file i {
    color: #10b981;
}

.folder-structure .indent-1 {
    padding-left: 1.5rem;
}

.folder-structure .indent-2 {
    padding-left: 3rem;
}

.folder-structure .file-desc {
    color: #6a9955;
    font-style: italic;
    margin-left: 0.5rem;
}

/* Share Options */
.share-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface-color, #f8f9fa);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
}

[data-theme="dark"] .share-option {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.share-option i {
    color: #10b981;
    font-size: 1.1rem;
}

/* Example Prompts Grid */
.example-prompts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.example-prompt {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface-color, #ffffff);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-left: 4px solid #6366f1;
    border-radius: 12px;
}

[data-theme="dark"] .example-prompt {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(99, 102, 241, 0.3);
}

.prompt-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.example-prompt strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #6366f1;
    font-size: 1.05rem;
}

[data-theme="dark"] .example-prompt strong {
    color: #a5b4fc;
}

/* AI Response Big Box */
.ai-response-big {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.response-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 1rem;
}

.ai-deliverables {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.ai-deliverables li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.ai-deliverables i {
    color: #10b981;
    font-size: 1.1rem;
}

/* Large Prompt Example */
.prompt-example.large {
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.prompt-example.large .prompt-text {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Command Box */
.command-box {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.command-label {
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-box code {
    flex: 1;
    background: transparent;
    color: #4ec9b0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1.1rem;
    padding: 0;
}

/* Result Box */
.result-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.result-box.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.result-box i {
    color: #10b981;
    font-size: 1.3rem;
}

/* Steps Simple */
.steps-simple {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.step-simple {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--surface-color, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: 10px;
    transition: all 0.2s ease;
}

.step-simple:hover {
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .step-simple {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.step-simple > span:first-child {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.step-simple > span:last-child,
.step-simple > span[data-i18n] {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 500;
}

[data-theme="dark"] .step-simple > span:last-child,
[data-theme="dark"] .step-simple > span[data-i18n] {
    color: var(--text-primary);
}

/* Iteration Examples */
.iteration-examples {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.iteration-example {
    background: var(--surface-color, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: 12px;
    padding: 1.25rem;
}

[data-theme="dark"] .iteration-example {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.issue-label, .fix-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.issue-label {
    color: #f59e0b;
}

.fix-label {
    color: #10b981;
}

.issue-text, .fix-text {
    margin: 0;
    padding-left: 1.5rem;
    font-style: italic;
    line-height: 1.6;
}

.fix-arrow {
    text-align: center;
    color: #6366f1;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

/* Action Box */
.action-box {
    display: flex;
    gap: 1rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left: 4px solid #3b82f6;
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.action-box i {
    color: #3b82f6;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.action-box strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #3b82f6;
    font-size: 1.05rem;
}

[data-theme="dark"] .action-box strong {
    color: #60a5fa;
}

.action-box p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Final Product Box */
.final-product-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.05));
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin: 1.5rem 0 2.5rem 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.final-product-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669, #047857);
    opacity: 0.8;
}

.final-product-box:hover {
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .final-product-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.08));
    border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .final-product-box:hover {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.product-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: transform 0.3s ease;
}

.final-product-box:hover .product-icon {
    transform: scale(1.05);
}

.final-product-box h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.35rem;
    color: var(--text-primary);
    font-weight: 700;
}

.final-product-box p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Share Grid */
.share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (max-width: 992px) {
    .share-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.share-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.share-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}

.share-card:hover::before {
    opacity: 1;
}

[data-theme="dark"] .share-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .share-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.share-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem auto;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    transition: transform 0.3s ease;
}

.share-card:hover .share-icon {
    transform: scale(1.1) rotate(5deg);
}

.share-card h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 700;
}

.share-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* User Experience Box */
.user-experience-box {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(139, 92, 246, 0.05) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.user-experience-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
    opacity: 0.8;
}

.user-experience-box:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .user-experience-box {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.08) 0%, 
        rgba(139, 92, 246, 0.08) 100%);
    border-color: rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .user-experience-box:hover {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.user-experience-box h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    color: #6366f1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

[data-theme="dark"] .user-experience-box h4 {
    color: #a5b4fc;
}

.user-experience-box h4 i {
    font-size: 1.3rem;
}

.user-steps {
    margin: 0;
    padding-left: 2rem;
    display: grid;
    gap: 0.75rem;
    counter-reset: step-counter;
}

.user-steps li {
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 1rem;
    position: relative;
    padding-left: 0.5rem;
}

.user-steps li::marker {
    color: #6366f1;
    font-weight: 700;
}

[data-theme="dark"] .user-steps li::marker {
    color: #a5b4fc;
}

.phase-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.25rem;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.9rem;
    margin: 1rem 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
}

.phase-content code {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
}

[data-theme="dark"] .phase-content code {
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
}

.phase-content kbd {
    background: #374151;
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85em;
    font-family: inherit;
    border: 1px solid #4b5563;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0 3rem 0;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.faq-item:hover::before {
    opacity: 1;
}

[data-theme="dark"] .faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.faq-item h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 600;
    line-height: 1.4;
}

[data-theme="dark"] .faq-item h4 {
    color: #a5b4fc;
}

.faq-item p {
    margin: 0;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Special Note Box */
.special-note-box {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(139, 92, 246, 0.05) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.special-note-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    opacity: 0.8;
}

.special-note-box:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .special-note-box {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.08) 0%, 
        rgba(139, 92, 246, 0.08) 100%);
    border-color: rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .special-note-box:hover {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.special-note-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.special-note-content h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

.special-note-content p {
    margin: 0 0 1.5rem 0;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.special-note-example {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.special-note-example strong {
    display: block;
    color: #6366f1;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .special-note-example strong {
    color: #a5b4fc;
}

.special-note-example p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Stack Diagram - Enhanced Version */
.stack-diagram-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    padding-top: 20px;
}

.stack-step {
    position: relative;
    width: 100%;
    overflow: visible;
}

.step-number-badge {
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    z-index: 2;
}

.step-number-badge.final {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    font-size: 1rem;
}

.stack-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: var(--surface-color, #ffffff);
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: visible;
}

[data-theme="dark"] .stack-card {
    background: rgba(255, 255, 255, 0.05);
}

.stack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stack-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Card color themes */
.stack-card.vscode {
    border-color: rgba(0, 122, 204, 0.3);
    background: linear-gradient(135deg, rgba(0, 122, 204, 0.05), transparent);
}
.stack-card.vscode::before { background: #007acc; }
.stack-card.vscode .stack-card-icon { background: linear-gradient(135deg, #007acc, #0098ff); }

.stack-card.copilot {
    border-color: rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
}
.stack-card.copilot::before { background: #6366f1; }
.stack-card.copilot .stack-card-icon { background: linear-gradient(135deg, #6366f1, #8b5cf6); }

.stack-card.vba {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), transparent);
}
.stack-card.vba::before { background: #f59e0b; }
.stack-card.vba .stack-card-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }

.stack-card.python {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
}
.stack-card.python::before { background: #3b82f6; }
.stack-card.python .stack-card-icon { background: linear-gradient(135deg, #306998, #ffd43b); }

.stack-card.excel {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15);
    margin-top: 8px;
    padding-top: 1.5rem;
}
.stack-card.excel::before { background: linear-gradient(180deg, #10b981, #059669); width: 6px; }
.stack-card.excel .stack-card-icon { background: linear-gradient(135deg, #10b981, #059669); }

.stack-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stack-card-content h4 {
    margin: 0 0 0.35rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stack-card-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Connector */
.stack-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 45px;
    position: relative;
}

.connector-line {
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #d1d5db, #9ca3af);
    border-radius: 2px;
}

[data-theme="dark"] .connector-line {
    background: linear-gradient(180deg, #4b5563, #374151);
}

.connector-arrow {
    position: absolute;
    bottom: -8px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    animation: pulse-arrow 2s ease-in-out infinite;
}

.final-connector .connector-arrow {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

@keyframes pulse-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Final badge */
.final-step {
    padding-top: 8px;
}

.final-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
    z-index: 10;
}

.final-badge i {
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .step-number-badge {
        left: -40px;
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .stack-diagram-enhanced {
        margin-left: 40px;
    }
    
    .stack-card {
        padding: 1rem 1.25rem;
    }
    
    .stack-card-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    
    .final-badge {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 1rem;
        width: fit-content;
    }
}

/* Section Title */
.section-main-title {
    font-size: 1.75rem;
    margin: 0 0 1.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.section-main-title i {
    color: #6366f1;
}

/* Section intro paragraph */
.section-intro {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Share options heading */
.share-options-heading {
    margin: 2.5rem 0 0 0;
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 3rem 0;
  text-align: center;
  margin-top: 4rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer .footer-sub {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* ===================================
   Keyboard Shortcuts UI
   =================================== */
.keyboard-shortcuts-hint {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  color: #6b7280;
  z-index: 10001;
  opacity: 0.5;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

[data-theme="dark"] .keyboard-shortcuts-hint {
  background: rgba(17, 24, 39, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[dir="rtl"] .keyboard-shortcuts-hint {
  left: auto;
  right: 20px;
}

.keyboard-shortcuts-hint:hover {
  opacity: 1;
  border-color: var(--accent-primary, #6366f1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.keyboard-shortcuts-hint kbd {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
  font-size: 0.7rem;
  font-family: monospace;
  font-weight: 600;
}

[data-theme="dark"] .keyboard-shortcuts-hint kbd {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Keyboard shortcuts modal backdrop */
.shortcuts-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10010;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.shortcuts-modal-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

/* Keyboard shortcuts modal */
.shortcuts-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 2rem;
  min-width: 320px;
  max-width: 400px;
  z-index: 10011;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .shortcuts-modal {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.shortcuts-modal.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.shortcuts-modal h4 {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  border-bottom: 2px solid var(--accent-primary, #6366f1);
  padding-bottom: 0.5rem;
}

[data-theme="dark"] .shortcuts-modal h4 {
  color: #f9fafb;
}

.shortcut-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .shortcut-row {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.shortcut-row:last-child {
  border-bottom: none;
}

.shortcut-row span:first-child {
  color: #6b7280;
  font-size: 0.95rem;
}

[data-theme="dark"] .shortcut-row span:first-child {
  color: #9ca3af;
}

.shortcut-keys {
  display: flex;
  gap: 0.5rem;
}

.shortcut-keys kbd {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .shortcut-keys kbd {
  background: #374151;
  border-color: #4b5563;
  color: #e5e7eb;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 90px;
  right: var(--spacing-xl, 2rem);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

[dir="rtl"] .scroll-to-top {
  right: auto;
  left: var(--spacing-xl, 2rem);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.scroll-to-top:active {
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .philosophy-box {
        flex-direction: column;
        text-align: center;
    }
    
    .phase {
        flex-direction: column;
    }
    
    .stack-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .code-example-container {
        flex-direction: column;
    }
    
    .code-example-arrow {
        transform: rotate(90deg);
        padding: 1rem 0;
    }
}

/* Try It Yourself Box */
.try-it-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.try-it-box h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

[data-theme="dark"] .try-it-box h3 {
    color: #60a5fa;
}

.try-it-box > p {
    margin: 0 0 1.5rem 0;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* How-To Steps */
.how-to-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.how-to-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--surface-color, #ffffff);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
}

[data-theme="dark"] .how-to-step {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.how-to-step .step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.how-to-step .step-content strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.how-to-step .step-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.how-to-step .step-content kbd {
    background: #374151;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.85em;
    font-family: inherit;
    border: 1px solid #4b5563;
    margin: 0 0.15rem;
}

.how-to-step .step-content code {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

[data-theme="dark"] .how-to-step .step-content code {
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
}

/* Tip Callout */
.tip-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border-left: 4px solid #10b981;
}

.tip-callout i {
    color: #10b981;
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

.tip-callout span {
    line-height: 1.6;
    color: var(--text-primary);
}

/* Code Example Container */
.code-example-container {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 1.5rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.code-example-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.code-example-column .column-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.description-column .column-header {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.code-column .column-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.code-example-column .column-content {
    padding: 1.5rem;
    flex: 1;
    background: var(--surface-color, #ffffff);
}

[data-theme="dark"] .code-example-column .column-content {
    background: rgba(30, 30, 30, 0.95);
}

.description-column .column-content {
    display: flex;
    align-items: center;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-top: none;
    border-radius: 0 0 0 16px;
}

.description-column .column-content p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--text-primary);
}

.code-column .column-content {
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-top: none;
    border-left: none;
    border-radius: 0 0 16px 0;
}

.code-column .column-content pre {
    margin: 0;
    background: #1e1e1e;
    border-radius: 10px;
    padding: 1.25rem;
    overflow-x: auto;
}

.code-column .column-content code {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #d4d4d4;
    background: transparent;
    padding: 0;
}

/* Code Example Arrow */
.code-example-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.1), rgba(16, 185, 129, 0.1));
    padding: 0 1.5rem;
    gap: 0.5rem;
}

.code-example-arrow i {
    font-size: 1.75rem;
    color: #6366f1;
}

.code-example-arrow span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6366f1;
    white-space: nowrap;
}

/* ============================================
   Example Scenario & Code Block Styles
   ============================================ */

.example-scenario {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
}

.scenario-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 1rem;
}

.scenario-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.scenario-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.scenario-list li::before {
    content: "→";
    color: #10b981;
    font-weight: 600;
    flex-shrink: 0;
}

.code-block-container {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .code-block-container {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.code-block-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.code-lang-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.code-block {
    margin: 0;
    padding: 1.5rem;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    overflow-x: auto;
}

.code-block code {
    color: inherit;
    background: transparent;
}

/* Syntax Highlighting */
.code-comment {
    color: #6a9955;
    font-style: italic;
}

.code-keyword {
    color: #569cd6;
    font-weight: 600;
}

.code-function {
    color: #dcdcaa;
}

.code-string {
    color: #ce9178;
}

.code-number {
    color: #b5cea8;
}

.code-object {
    color: #4ec9b0;
}

.code-type {
    color: #4ec9b0;
}

/* Code Anatomy Section */
.code-anatomy {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-top: 1.5rem;
}

[data-theme="dark"] .code-anatomy {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.code-anatomy h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.code-anatomy h4 i {
    color: #3b82f6;
}

.anatomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.anatomy-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

[data-theme="dark"] .anatomy-item {
    background: rgba(59, 130, 246, 0.1);
}

.anatomy-item > code {
    background: #1e1e1e;
    color: #f59e0b;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.anatomy-item span {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.anatomy-item span code {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85em;
}

[data-theme="dark"] .anatomy-item span code {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .anatomy-grid {
        grid-template-columns: 1fr;
    }
    
    .example-scenario {
        padding: 1.25rem 1.5rem;
    }
    
    .code-anatomy {
        padding: 1.25rem 1.5rem;
    }
}

/* ============================================
   Expandable Section (details/summary)
   ============================================ */

.expandable-section {
    margin: 2.5rem 0;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface-color, #ffffff);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .expandable-section {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.expandable-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    transition: background 0.2s;
}

.expandable-header::-webkit-details-marker {
    display: none;
}

.expandable-header:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
}

.expandable-header > i:first-child {
    color: #6366f1;
    font-size: 1.1rem;
}

.expandable-header .expand-hint {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0.7;
}

.expandable-header .expand-icon {
    color: #6366f1;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.expandable-section[open] .expandable-header .expand-icon {
    transform: rotate(180deg);
}

.expandable-section[open] .expandable-header .expand-hint {
    display: none;
}

.expandable-content {
    padding: 1.75rem;
    border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
}

[data-theme="dark"] .expandable-content {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.expandable-content .example-scenario {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.expandable-content .code-block-container {
    margin: 0;
}

.expandable-content .note-box {
    margin-bottom: 0;
}

/* ===================================
   SETUP & LOOP SECTIONS
   New streamlined workflow styles
   =================================== */

/* Two Scenarios - Has file vs No file */
.two-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.scenario {
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid transparent;
}

.scenario.has-file {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border-color: rgba(16, 185, 129, 0.3);
}

.scenario.no-file {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border-color: rgba(99, 102, 241, 0.3);
}

.scenario-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.scenario-header i {
    font-size: 1.5rem;
}

.scenario.has-file .scenario-header i {
    color: #10B981;
}

.scenario.no-file .scenario-header i {
    color: #6366f1;
}

.scenario-header strong {
    font-size: 1.1rem;
}

.scenario p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Loop Diagram */
.loop-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.05));
    border-radius: 16px;
    margin-bottom: 3rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.loop-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .loop-step {
    background: var(--card-bg, #1e293b);
}

.loop-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.loop-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.loop-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.loop-arrow {
    color: #6366f1;
    font-size: 1.5rem;
    animation: pulse-arrow 2s ease-in-out infinite;
}

.loop-arrow.loop-back {
    color: #a855f7;
}

@keyframes pulse-arrow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Loop Sections */
.loop-section {
    background: var(--card-bg, white);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

[data-theme="dark"] .loop-section {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.loop-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.loop-section-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.loop-section-header h3 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--text-primary);
}

/* Test Outcomes */
.test-outcomes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.outcome {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid transparent;
}

.outcome.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border-color: rgba(16, 185, 129, 0.3);
}

.outcome.iterate {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
    border-color: rgba(245, 158, 11, 0.3);
}

.outcome-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.outcome.success .outcome-icon {
    color: #10B981;
}

.outcome.iterate .outcome-icon {
    color: #F59E0B;
}

.outcome h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.outcome p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Iteration Section */
.iteration-section {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(217, 119, 6, 0.05)) !important;
    border-color: rgba(245, 158, 11, 0.2) !important;
}

.iteration-section h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #D97706;
}

[data-theme="dark"] .iteration-section h3 {
    color: #FBBF24;
}

/* macOS Note Box */
.note-box.macos {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    border-left: 4px solid #6366f1;
}

.note-box.macos i {
    color: #6366f1;
}

/* Pro Tip styling adjustments */
.note-box.pro-tip {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.note-box.pro-tip i {
    flex-shrink: 0;
    font-size: 1.25rem;
}

.note-box.pro-tip p {
    margin: 0;
    line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .loop-diagram {
        gap: 0.5rem;
        padding: 1.5rem 1rem;
    }
    
    .loop-step {
        padding: 0.75rem 1rem;
    }
    
    .loop-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .loop-arrow {
        font-size: 1.25rem;
    }
    
    .loop-section {
        padding: 1.5rem;
    }
    
    .two-scenarios {
        grid-template-columns: 1fr;
    }
}
