/* Guides Page Styles */
.guides-main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.guides-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.guides-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color, #2563eb);
    margin-bottom: 1rem;
}

.guides-header p {
    font-size: 1.1rem;
    color: var(--text-secondary, #64748b);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Quick Navigation */
.quick-nav {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.nav-tabs {
    display: flex;
    gap: 0.5rem;
    min-width: max-content;
}

.nav-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: #f8fafc;
    color: var(--text-secondary, #64748b);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-tab:hover,
.nav-tab.active {
    background: var(--primary-color, #2563eb);
    color: white;
    transform: translateY(-2px);
}

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

.guide-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.guide-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 0;
    min-height: 400px;
}

.guide-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.guide-card.featured .guide-image {
    height: auto;
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.guide-card:hover .guide-image img {
    transform: scale(1.05);
}

.guide-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.difficulty-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-badge.beginner {
    background: #dcfce7;
    color: #166534;
}

.difficulty-badge.intermediate {
    background: #fef3c7;
    color: #92400e;
}

.difficulty-badge.advanced {
    background: #fecaca;
    color: #991b1b;
}

.difficulty-badge.expert {
    background: #e0e7ff;
    color: #3730a3;
}

.guide-content {
    padding: 1.5rem;
}

.guide-card.featured .guide-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.guide-header h2,
.guide-header h3 {
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: var(--text-primary, #1e293b);
}

.guide-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.guide-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

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

.guide-category {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.read-time:before {
    content: "⏱️";
}

.guide-excerpt {
    color: var(--text-secondary, #64748b);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.guide-card.featured .guide-excerpt {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* Guide Highlights (for featured guides) */
.guide-highlights {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color, #2563eb);
}

.guide-highlights h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin-bottom: 1rem;
}

.guide-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-highlights li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary, #64748b);
}

.guide-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: #f1f5f9;
    color: var(--text-secondary, #64748b);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.guide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
    flex-wrap: wrap;
    gap: 1rem;
}

.guide-author,
.guide-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.guide-author:before {
    content: "👤";
}

.guide-date:before {
    content: "📅";
}

.try-game-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.try-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: white;
    border: 2px solid var(--primary-color, #2563eb);
    color: var(--primary-color, #2563eb);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.load-more-btn:hover {
    background: var(--primary-color, #2563eb);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

/* Navigation Updates */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary, #1e293b);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-color, #2563eb);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guides-header h1 {
        font-size: 2rem;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .guide-card.featured {
        grid-template-columns: 1fr;
    }
    
    .guide-card.featured .guide-image {
        height: 200px;
    }
    
    .guide-content {
        padding: 1rem;
    }
    
    .guide-card.featured .guide-content {
        padding: 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .quick-nav {
        padding: 0.5rem;
    }
    
    .nav-tabs {
        gap: 0.25rem;
    }
    
    .nav-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .guide-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .guide-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .guide-highlights {
        padding: 1rem;
    }
    
    .guide-tags {
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .guides-header {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .guides-header h1 {
        font-size: 1.75rem;
    }
    
    .guides-grid {
        gap: 1rem;
    }
    
    .quick-nav {
        margin: 0 -0.5rem 2rem -0.5rem;
        border-radius: 0;
    }
    
    .difficulty-badge {
        position: static;
        display: inline-block;
        margin-bottom: 0.5rem;
    }
    
    .guide-badge {
        position: static;
        display: inline-block;
        margin-bottom: 0.5rem;
        margin-right: 0.5rem;
    }
}
