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

/* Guides Hero */
.guides-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.guides-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero Decorative Shapes */
.guides-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.guides-hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    top: 10%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    bottom: 20%;
    right: 15%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    top: 50%;
    right: 25%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.guides-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.guides-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    color: #60a5fa;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.guides-badge svg {
    width: 18px;
    height: 18px;
}

.guides-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
}

.guides-hero p {
    font-size: 1.125rem;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0 0 32px 0;
}

/* Hero Stats */
.guides-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.hero-stat .stat-text {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 4px;
}

/* Filter Section */
.guides-filter {
    background: var(--bg-primary);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    /* position: sticky; */
    top: 72px;
    z-index: 50;
}

.filter-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab .tab-icon {
    font-size: 1rem;
}

.filter-tab .tab-count {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: 50px;
    color: var(--text-tertiary);
}

.filter-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.filter-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Guides Content */
.guides-content {
    padding: 60px 0;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Guide Card */
.guide-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.guide-card-image {
    height: 160px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    position: relative;
}

.guide-card-image.math {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.guide-card-image.physics {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.guide-card-image.units {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.guide-card-image.time {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.guide-category {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.guide-card-content {
    padding: 24px;
}

.guide-card-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.guide-card-content h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.guide-card-content h2 a:hover {
    color: var(--primary-color);
}

.guide-card-content > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.guide-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.guide-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.guide-time svg {
    width: 16px;
    height: 16px;
}

.guide-level {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.guide-level.beginner {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.guide-level.intermediate {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.guide-level.advanced {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Guides CTA */
.guides-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.guides-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.cta-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* CTA Left Content */
.cta-left {
    color: #ffffff;
}
main{
    padding: 0 !important;
}
.cta-label {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.cta-left h2 {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cta-left > p {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0 0 32px 0;
}

/* CTA List */
.cta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px 0;
}

.cta-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.95rem;
}

.cta-list li:last-child {
    border-bottom: none;
}

.cta-list li svg {
    width: 20px;
    height: 20px;
    color: #10b981;
    flex-shrink: 0;
}

/* CTA Actions */
.cta-actions {
    display: flex;
    gap: 16px;
}

.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn-primary svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.cta-btn-primary:hover svg {
    transform: translateX(4px);
}

/* CTA Right Cards */
.cta-right {
    display: flex;
    justify-content: center;
}

.cta-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 380px;
}

.cta-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(8px);
}

.cta-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-card-icon.math {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.cta-card-icon.physics {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.cta-card-icon.units {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.cta-card-icon svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.cta-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cta-card-text strong {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
}

.cta-card-text span {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ===================================
   Guide Article Styles
   =================================== */
.guide-article {
    padding: 60px 0;
}

.guide-article-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.guide-article-header .guide-category-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.guide-article-header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.guide-article-header .guide-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 24px;
}

.guide-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.guide-article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.guide-article-meta svg {
    width: 18px;
    height: 18px;
}

/* Article Content */
.guide-article-content {
    max-width: 800px;
    margin: 0 auto;
}

.guide-article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 20px 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

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

.guide-article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 16px 0;
}

.guide-article-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 20px 0;
}

.guide-article-content ul,
.guide-article-content ol {
    margin: 0 0 24px 0;
    padding-left: 24px;
}

.guide-article-content li {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.guide-article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Info Boxes */
.info-box {
    padding: 24px;
    border-radius: 12px;
    margin: 28px 0;
}

.info-box.tip {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
}

.info-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
}

.info-box.note {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
}

.info-box h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

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

/* Formula Box */
.formula-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin: 28px 0;
    text-align: center;
}

.formula-box .formula {
    font-size: 1.5rem;
    font-family: 'Times New Roman', serif;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.formula-box .formula-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Example Box */
.example-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    margin: 28px 0;
}

.example-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.example-box h4::before {
    content: '💡';
}

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

.guide-nav-link {
    flex: 1;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.guide-nav-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.guide-nav-link.prev {
    text-align: left;
}

.guide-nav-link.next {
    text-align: right;
}

.guide-nav-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.guide-nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===================================
   Responsive Styles
   =================================== */
@media (max-width: 1024px) {
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .guides-hero-shapes {
        display: none;
    }
}

@media (max-width: 768px) {
    .guides-hero {
        padding: 120px 0 60px;
    }
    
    .guides-hero h1 {
        font-size: 2rem;
    }
    
    .guides-hero-stats {
        gap: 32px;
    }
    
    .hero-stat .stat-num {
        font-size: 1.5rem;
    }
    
    .guides-filter {
        padding: 16px 0;
    }
    
    .filter-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-label {
        display: none;
    }
    
    .filter-tabs {
        gap: 6px;
        justify-content: center;
    }
    
    .filter-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .filter-tab .tab-icon {
        display: none;
    }
    
    .guides-content {
        padding: 40px 0;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .guide-card-image {
        height: 120px;
    }
    
    .guide-card-content {
        padding: 20px;
    }
    
    .guides-cta {
        padding: 60px 0;
    }
    
    .cta-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .cta-left {
        text-align: center;
    }
    
    .cta-left h2 {
        font-size: 2rem;
    }
    
    .cta-list li {
        justify-content: center;
        text-align: left;
    }
    
    .cta-actions {
        justify-content: center;
    }
    
    .cta-cards {
        max-width: 100%;
    }
    
    .cta-card:hover {
        transform: translateY(-4px);
    }
    
    /* Article styles */
    .guide-article {
        padding: 40px 0;
    }
    
    .guide-article-header h1 {
        font-size: 1.75rem;
    }
    
    .guide-article-content h2 {
        font-size: 1.5rem;
    }
    
    .guide-article-content h3 {
        font-size: 1.25rem;
    }
    
    .guide-nav {
        flex-direction: column;
    }
    
    .guide-nav-link.prev,
    .guide-nav-link.next {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .guides-hero {
        padding: 100px 0 48px;
    }
    
    .guides-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .guides-hero h1 {
        font-size: 1.75rem;
    }
    
    .guides-hero p {
        font-size: 1rem;
    }
    
    .guide-card-content h2 {
        font-size: 1.1rem;
    }
    
    .cta-left h2 {
        font-size: 1.75rem;
    }
    
    .cta-left > p {
        font-size: 1rem;
    }
    
    .cta-list li {
        font-size: 0.9rem;
    }
    
    .cta-card {
        padding: 16px;
    }
    
    .cta-card-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    
    .cta-card-icon svg {
        width: 20px;
        height: 20px;
    }
}
