/* ============================================
   Guides Page Specific Styles
   ============================================ */

/* Guide Section */
.guide-section {
    margin-bottom: 4rem;
}

.guide-title {
    font-family: var(--font-headings);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(162, 207, 255, 0.2);
    padding-bottom: 0.5rem;
}

.guide-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.guide-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Format Comparison */
.format-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.format-card {
    background: var(--bg-surface);
    border: 2px solid rgba(162, 207, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.format-card:hover {
    border-color: rgba(162, 207, 255, 0.3);
    transform: translateY(-4px);
}

.format-parquet {
    border-color: rgba(162, 207, 255, 0.3);
}

.format-json {
    border-color: rgba(162, 207, 255, 0.1);
}

.format-header {
    background: rgba(162, 207, 255, 0.05);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(162, 207, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.format-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.format-body {
    padding: 1.5rem;
}

.format-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-ice);
    margin: 1.5rem 0 0.75rem 0;
}

.format-body h4:first-child {
    margin-top: 0;
}

.format-body ul {
    margin: 0;
    padding-left: 1.5rem;
}

.format-body li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.format-body code {
    background: rgba(162, 207, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    color: var(--accent-ice);
}

.format-body p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

/* Guides Grid */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.guide-card-link {
    text-decoration: none;
    color: inherit;
}

.guide-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    border-color: var(--accent-ice);
    box-shadow: 0 4px 20px rgba(162, 207, 255, 0.1);
    transform: translateY(-2px);
}

.guide-card-featured {
    background: linear-gradient(135deg, rgba(162, 207, 255, 0.08) 0%, rgba(162, 207, 255, 0.03) 100%);
    border: 2px solid var(--accent-ice);
    position: relative;
}

.guide-card-featured::before {
    content: "⭐ START HERE";
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent-ice);
    color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.guide-card-featured:hover {
    box-shadow: 0 8px 30px rgba(162, 207, 255, 0.25);
    transform: translateY(-4px);
}

.guide-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.guide-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.guide-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

.guide-card-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.guide-difficulty,
.guide-time {
    font-size: 0.85rem;
    color: var(--accent-slate);
}

/* Code Examples */
.code-example {
    margin: 2rem 0;
    border: 1px solid #3e3e3e;
    border-radius: 12px;
    overflow: hidden;
    background: #1e1e1e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.code-example-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #252525 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #3e3e3e;
    position: relative;
}

.code-example-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #a2cfff 0%, #6b7688 100%);
}

.code-example-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0 0 0.5rem 0;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-example-header h3::before {
    content: "◆";
    color: #a2cfff;
    font-size: 0.8rem;
}

.code-example-header p {
    color: #b0b0b0;
    margin: 0;
    font-size: 0.95rem;
    padding-left: 1rem;
    font-style: italic;
}

.code-block-wrapper {
    position: relative;
    background: #1e1e1e;
}

.code-toggle {
    width: 100%;
    background: linear-gradient(135deg, #2d2d2d 0%, #252525 100%);
    border: 1px solid #3e3e3e;
    border-radius: 8px 8px 0 0;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: #a2cfff;
    transition: all 0.3s ease;
    position: relative;
}

.code-toggle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #a2cfff 0%, #6b7688 100%);
    border-radius: 8px 0 0 0;
}

.code-toggle:hover {
    background: linear-gradient(135deg, #3e3e3e 0%, #353535 100%);
    border-color: #4e4e4e;
}

.toggle-text {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-text::before {
    content: "{ }";
    color: #6b7688;
    font-weight: 700;
    font-size: 1.1rem;
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: #a2cfff;
}

.code-content {
    position: relative;
    padding: 1.5rem;
    background: #1e1e1e;
    border-radius: 0 0 8px 8px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.copy-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #2d2d2d;
    border: 1px solid #3e3e3e;
    color: #a2cfff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    z-index: 10;
}

.copy-button:hover {
    background: #3e3e3e;
    border-color: #4e4e4e;
    transform: translateY(-1px);
}

.copy-button svg {
    width: 16px;
    height: 16px;
}

.code-content pre {
    margin: 0;
    padding-right: 5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #3e3e3e #1e1e1e;
}

.code-content pre::-webkit-scrollbar {
    height: 8px;
}

.code-content pre::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.code-content pre::-webkit-scrollbar-thumb {
    background: #3e3e3e;
    border-radius: 4px;
}

.code-content pre::-webkit-scrollbar-thumb:hover {
    background: #4e4e4e;
}

.code-content code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #d4d4d4;
    display: block;
}

/* OS-Specific Command Highlighting */
.code-content pre code {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* VS Code Style Syntax Highlighting */
/* Comments */
.code-content code {
    color: #d4d4d4; /* Default text */
}

/* Simulate syntax highlighting with specific patterns */
.code-content pre {
    counter-reset: line;
}

/* Line numbers (optional enhancement) */
.code-content.show-lines code {
    counter-increment: line;
}

.code-content.show-lines code::before {
    content: counter(line);
    display: inline-block;
    width: 2.5em;
    padding-right: 1em;
    margin-right: 0.5em;
    text-align: right;
    color: #858585;
    user-select: none;
    border-right: 1px solid #3e3e3e;
}

/* Info Box Overrides for Guides */
.guide-section .info-box {
    background: linear-gradient(135deg, rgba(162, 207, 255, 0.08) 0%, rgba(162, 207, 255, 0.03) 100%);
    border: 2px solid #3e3e3e;
    border-left: 4px solid #a2cfff;
    margin: 2rem 0;
}

.guide-section .info-box h3 {
    color: #a2cfff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-section .info-box h3::before {
    content: "ℹ";
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(162, 207, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 1.5rem;
}

.guide-section .info-box code {
    background: #2d2d2d;
    border: 1px solid #3e3e3e;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: #a2cfff;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.guide-section .info-box a {
    color: #4fc1ff;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.guide-section .info-box a:hover {
    color: #a2cfff;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--accent-ice);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--text-primary);
}

/* Guide Navigation */
.guide-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .format-comparison {
        grid-template-columns: 1fr;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-navigation {
        flex-direction: column;
    }
    
    .copy-button {
        position: static;
        margin-bottom: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .code-content pre {
        padding-right: 0;
    }
}
