/* ===== Guides Pages Styles ===== */

/* Guides Banner */
.guides-banner {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #0ea5e9 100%);
    padding: 6.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.guides-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.guides-banner .banner-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.guides-banner h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.guides-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.banner-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.banner-stats .stat {
    text-align: center;
}

.banner-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
}

.banner-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .guides-banner {
        padding: 5.5rem 0 3rem;
    }
    
    .guides-banner h1 {
        font-size: 2rem;
    }
    
    .guides-banner p {
        font-size: 1rem;
    }
    
    .banner-stats {
        gap: 1.5rem;
    }
    
    .banner-stats .stat-number {
        font-size: 1.75rem;
    }
}

/* Guides Intro */
.guides-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.guides-intro .intro-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.guides-intro h2 {
    margin-bottom: 1rem;
}

.guides-intro p {
    font-size: 1.1rem;
}

/* Guide Categories */
.guide-categories {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.guide-category {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.category-icon.algo {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.category-icon.code {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.category-icon.finance {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.category-icon.math {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
}

.category-info h3 {
    margin-bottom: 0.25rem;
}

.category-info p {
    margin: 0;
    font-size: 0.95rem;
}

.guide-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.guide-item:nth-child(2n) {
    border-right: none;
}

.guide-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.guide-item:hover {
    background: var(--bg-secondary);
}

.guide-item:hover .guide-item-icon {
    transform: scale(1.1);
}

.guide-item:hover > i {
    transform: translateX(5px);
}

.guide-item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(14, 165, 233, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.guide-item-content {
    flex: 1;
    min-width: 0;
}

.guide-item-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.guide-item-content p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guide-item > i {
    color: var(--text-light);
    transition: transform var(--transition-fast);
}

@media (max-width: 768px) {
    .guide-list {
        grid-template-columns: 1fr;
    }

    .guide-item {
        border-right: none;
    }

    .guide-item:last-child {
        border-bottom: none;
    }

    .guide-item:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--border-color);
    }

    .guide-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 576px) {
    .category-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Getting Started Section */
.getting-started-section {
    background: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
}

.step-card h4 {
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* Tips Section */
.tips-section {
    background: white;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.tip-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.tip-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tip-content h4 {
    margin-bottom: 0.5rem;
}

.tip-content p {
    margin: 0;
    font-size: 0.95rem;
}

.tip-content kbd {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    box-shadow: 0 2px 0 var(--border-color);
}

/* CTA Section */
.cta-section {
    background: var(--bg-secondary);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content > p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.guide-cta p {
    color: #fff;
}
@media (max-width: 576px) {
    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-actions {
        flex-direction: column;
    }
}

/* Individual Guide Page Styles */
.guide-content {
    max-width: 1200px;
    margin: 0 auto;
}

.guide-header {
    margin-bottom: 2rem;
}

.guide-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.guide-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-meta-item i {
    color: var(--primary-color);
}

.guide-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.guide-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.guide-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.guide-body p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.guide-body ul,
.guide-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.guide-body li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    list-style-position: outside;
}

.guide-body ul li {
    list-style: disc;
}

.guide-body ol li {
    list-style: decimal;
}

.guide-body pre {
    background: #1e1e2e;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.guide-body code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #cdd6f4;
}

.guide-body p code {
    background: var(--bg-tertiary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--primary-color);
}

.guide-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1.5rem 0;
}

.guide-body blockquote p {
    margin: 0;
    font-style: italic;
}

.guide-body img {
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
}

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

.guide-nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.guide-nav-link:hover {
    background: var(--bg-tertiary);
    transform: translateY(-3px);
}

.guide-nav-link.next {
    text-align: right;
    justify-content: flex-end;
}

.guide-nav-link i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.guide-nav-link span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
}

.guide-nav-link strong {
    display: block;
    font-size: 1rem;
}

@media (max-width: 576px) {
    .guide-nav {
        flex-direction: column;
    }

    .guide-nav-link.next {
        text-align: left;
        justify-content: flex-start;
    }
}
