/* Guides Section Styles */

/* Breadcrumbs */
.breadcrumbs {
    background: #f8f9fa;
    padding: 15px 0;
    margin-top: 70px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    font-size: 14px;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #ff004d;
}

.breadcrumb-item:last-child {
    color: #240a0a;
    font-weight: 500;
}

/* Guides Hero Section */
.guides-hero {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    padding: 80px 0 60px;
    margin-top: 20px;
    text-align: center;
}

.guides-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #240a0a;
}

.guides-hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Guides Grid */
.guides-section {
    padding: 80px 0;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.guide-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.guide-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff004d, #ff3366);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.guide-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #240a0a;
}

.guide-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.guide-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #888;
}

.guide-difficulty {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 12px;
}

.difficulty-beginner {
    background: #e8f5e8;
    color: #2e7d32;
}

.difficulty-intermediate {
    background: #fff3e0;
    color: #e65100;
}

.difficulty-advanced {
    background: #ffebee;
    color: #c62828;
}

.guide-card .btn {
    width: 100%;
    justify-content: center;
}

/* Guide Content Styles */
.guide-content {
    padding: 60px 0 80px;
}

.guide-header {
    text-align: center;
    margin-bottom: 50px;
}

.guide-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #240a0a;
}

.guide-header .guide-meta {
    justify-content: center;
    margin-bottom: 30px;
}

.guide-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.guide-article {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.guide-article h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #240a0a;
    border-bottom: 2px solid #ff004d;
    padding-bottom: 10px;
}

.guide-article h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #240a0a;
}

.guide-article p {
    margin-bottom: 20px;
}

.guide-article ul, .guide-article ol {
    margin: 20px 0;
    padding-left: 20px;
}

.guide-article li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.guide-article code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #e83e8c;
}

.guide-article pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 4px solid #ff004d;
}

.guide-article blockquote {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.guide-article .highlight-box {
    background: linear-gradient(135deg, #ff004d15, #ff336615);
    border: 1px solid #ff004d30;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.guide-article .highlight-box h4 {
    color: #ff004d;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Step by step guide */
.step-guide {
    margin: 30px 0;
}

.step-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.step-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.step-number {
    background: #ff004d;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
    margin-right: 6px;
}

.step-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #240a0a;
    margin: 0;
    line-height: 1.3;
    flex-grow: 1;
}

.step-content {
    padding: 20px;
}

.step-content ul, .step-content ol {
    margin: 15px 0;
    padding-left: 18px;
}

.step-content li {
    margin-bottom: 6px;
    line-height: 1.5;
}

/* Better alignment for numbered lists */
.step-content ol {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.step-content ol li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 35px;
    margin-bottom: 10px;
}

.step-content ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #ff004d;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

/* Minimal Footer for Guides */
.footer-minimal {
    background: #240a0a;
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

.footer-content-minimal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-logo-minimal img {
    height: 28px;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ff004d;
}

.footer-love p {
    color: #ccc;
    margin: 0;
    font-size: 14px;
}

/* Compact lists for commands */
.compact-list {
    margin: 15px 0;
    padding-left: 16px;
    list-style-type: disc;
}

.compact-list li {
    margin-bottom: 6px;
    line-height: 1.5;
    padding-left: 4px;
}

.compact-list code {
    margin-right: 8px;
    font-weight: 600;
}

/* Specific styles for compact lists in steps */
.step-content .compact-list {
    padding-left: 14px;
    margin: 12px 0;
}

.step-content .compact-list li {
    margin-bottom: 5px;
    padding-left: 2px;
}

/* Fix for regular bullet lists in step content */
.step-content ul:not(.compact-list) {
    padding-left: 16px;
}

.step-content ul:not(.compact-list) li {
    padding-left: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .guides-hero {
        margin-top: 60px;
        padding: 60px 0 50px;
    }
    
    .guides-hero h1 {
        font-size: 2rem;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-header h1 {
        font-size: 2rem;
    }
    
    .guide-article {
        padding: 0 20px;
    }
    
    .footer-content-minimal {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .breadcrumbs {
        margin-top: 80px;
    }
}

@media (max-width: 480px) {
    .guides-hero {
        margin-top: 70px;
        padding: 50px 0 40px;
    }
    
    .guides-hero h1 {
        font-size: 1.8rem;
    }
    
    .guide-card {
        padding: 20px;
    }
    
    .guide-header h1 {
        font-size: 1.8rem;
    }
}

/* Active navigation link */
.nav a.active {
    color: #ff004d !important;
    font-weight: 600;
}

/* Additional styles for new guide elements */

/* API Methods Grid */
.api-methods {
    margin: 30px 0;
}

.method-category {
    margin-bottom: 40px;
}

.method-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #240a0a;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.method-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ff004d;
}

.method-item code {
    font-weight: 600;
    color: #ff004d;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.method-item span {
    font-size: 13px;
    color: #666;
}

/* Commands Grid */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.command-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.command-name {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 5px;
}

.command-desc {
    font-size: 13px;
    color: #666;
}

/* Code Examples */
.code-examples {
    margin: 20px 0;
}

.code-example {
    margin-bottom: 25px;
}

.code-example h5 {
    background: #240a0a;
    color: white;
    padding: 8px 15px;
    margin: 0 0 -1px 0;
    font-size: 14px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

.code-example pre {
    margin-top: 0;
    border-radius: 0 0 8px 8px;
}

/* Parameters Table */
.params-table {
    margin: 20px 0;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.param-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
}

.param-row:last-child {
    border-bottom: none;
}

.param-row:nth-child(even) {
    background: #f8f9fa;
}

.param-name {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ff004d;
}

.param-type {
    font-style: italic;
    color: #6c757d;
    font-size: 14px;
}

.param-desc {
    color: #333;
}

.param-required {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    background: #d4edda;
    color: #155724;
}

/* Example Box */
.example-box {
    background: #e8f4fd;
    border: 1px solid #b8daff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.example-box h4 {
    margin-top: 0;
    color: #0c5460;
}

/* Tip Box */
.tip-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.tip-box h4 {
    margin-top: 0;
    color: #856404;
}

/* Warning Box */
.warning-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.warning-box h4 {
    margin-top: 0;
    color: #721c24;
}

/* Privacy Modes */
.privacy-modes {
    margin: 20px 0;
}

.privacy-mode {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #17a2b8;
}

.privacy-mode h5 {
    margin-top: 0;
    color: #17a2b8;
}

/* Best Practices */
.best-practices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.practice-item, .practice-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    overflow: hidden;
    word-wrap: break-word;
}

.practice-section .code-example {
    margin: 15px 0;
}

.practice-section .code-example pre {
    background: #f1f3f4;
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
    font-size: 12px;
    max-width: 100%;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.4;
}

.practice-item h4, .practice-section h4 {
    margin-top: 0;
    color: #155724;
}

/* Advanced Features */
.advanced-features {
    margin: 30px 0;
}

.feature-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #6f42c1;
}

.feature-item h4 {
    margin-top: 0;
    color: #6f42c1;
}

/* Libraries */
.libraries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.library-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #fd7e14;
}

.library-item h4 {
    margin-top: 0;
    color: #fd7e14;
}

/* Troubleshooting */
.troubleshooting {
    margin: 30px 0;
}

.problem-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
}

.problem-item h4 {
    margin-top: 0;
    color: #dc3545;
}

/* Next Steps */
.next-steps {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
}

.next-steps h3 {
    margin-top: 0;
    color: #240a0a;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Universal Guide Navigation */
.guide-navigation {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.guide-navigation .btn {
    min-width: 200px;
}

/* Button base styles for guides */
.btn {
    font-family: 'Inter', sans-serif;
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, #ff004d, #ff3366);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 77, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 77, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #ff004d;
    border: 2px solid #ff004d;
}

.btn-secondary:hover {
    background: #ff004d;
    color: white;
}

/* Outline button style for navigation */
.btn-outline {
    background: transparent;
    color: #240a0a;
    border: 2px solid #e9ecef;
    font-weight: 500;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #240a0a;
    color: #240a0a;
    transform: translateY(-1px);
}

/* Mobile Responsiveness for new elements */
@media (max-width: 768px) {
    .method-grid, .commands-grid, .best-practices, .libraries {
        grid-template-columns: 1fr;
    }
    
    .param-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .code-example pre {
        font-size: 12px;
        overflow-x: auto;
    }
    
    .practice-section .code-example pre {
        font-size: 11px;
        padding: 12px;
    }
}