/* Guides Page Specific Styles */

/* Hero Section */
.guides-hero {
    background: linear-gradient(135deg, #f9fafb 0%, #f2f4f7 100%);
    border-bottom: 1px solid #e4e7ec;
    padding: 80px 0 64px;
    text-align: center;
}

.guides-hero .hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #101828;
    letter-spacing: -0.02em;
}

.guides-hero .subtitle {
    font-size: 20px;
    color: #475467;
    margin-bottom: 40px;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-stat .stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #101828;
    display: block;
    line-height: 1.2;
    margin-bottom: 8px;
}

.hero-stat .stat-label {
    color: #475467;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #101828;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: #475467;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.category-card {
    background-color: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(247, 144, 9, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    border-color: #f79009;
    box-shadow: 0 8px 25px rgba(16, 24, 40, 0.15);
    transform: translateY(-4px);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fef7ed 0%, #fed7aa 100%);
    border: 1px solid #fed7aa;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, #f79009 0%, #dc6803 100%);
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #101828;
    margin-bottom: 16px;
}

.category-card p {
    color: #475467;
    line-height: 1.5;
    margin-bottom: 20px;
}

.category-count {
    display: inline-block;
    background: linear-gradient(135deg, #f79009 0%, #dc6803 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Featured Guides Section */
.featured-guides-section {
    padding: 80px 0;
    background-color: #f9fafb;
}

.featured-guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.guide-card {
    background-color: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.guide-card:hover {
    border-color: #f79009;
    box-shadow: 0 12px 40px rgba(16, 24, 40, 0.15);
    transform: translateY(-4px);
}

.guide-card.featured {
    border: 2px solid #f79009;
    box-shadow: 0 8px 25px rgba(247, 144, 9, 0.2);
}

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

.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: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f79009 0%, #dc6803 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    z-index: 10;
}

.guide-content {
    padding: 24px;
}

.guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.guide-category {
    background: linear-gradient(135deg, #ecfdf3 0%, #d1fae5 100%);
    color: #027a48;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guide-read-time {
    color: #475467;
    font-size: 12px;
    font-weight: 500;
}

.guide-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #101828;
    margin-bottom: 12px;
    line-height: 1.3;
}

.guide-content p {
    color: #475467;
    line-height: 1.5;
    margin-bottom: 20px;
}

.guide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f2f4f7;
}

.guide-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.guide-author span {
    font-size: 14px;
    color: #344054;
    font-weight: 500;
}

.guide-date {
    font-size: 12px;
    color: #475467;
}

/* Search & Filter Section */
.search-filter-section {
    padding: 40px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e4e7ec;
}

.search-filter-container {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid #e4e7ec;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #f79009;
    box-shadow: 0 0 0 4px rgba(247, 144, 9, 0.1);
}

.search-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #475467;
    transition: color 0.2s;
}

.search-button:hover {
    color: #f79009;
}

.filter-controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 16px 20px;
    border: 2px solid #e4e7ec;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    min-width: 150px;
    transition: all 0.2s;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #f79009;
    box-shadow: 0 0 0 4px rgba(247, 144, 9, 0.1);
}

/* All Guides Section */
.all-guides-section {
    padding: 80px 0;
    background-color: #f9fafb;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.load-more-container {
    text-align: center;
}

.load-more-button {
    background: linear-gradient(135deg, #f79009 0%, #dc6803 100%);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(247, 144, 9, 0.3);
}

.load-more-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247, 144, 9, 0.4);
}

.load-more-button:active {
    transform: translateY(0);
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9fafb 0%, #f2f4f7 100%);
    border-top: 1px solid #e4e7ec;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #101828;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.newsletter-text p {
    font-size: 18px;
    color: #475467;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.newsletter-input {
    padding: 16px 20px;
    border: 2px solid #e4e7ec;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    min-width: 250px;
    transition: all 0.2s;
}

.newsletter-input:focus {
    outline: none;
    border-color: #f79009;
    box-shadow: 0 0 0 4px rgba(247, 144, 9, 0.1);
}

.newsletter-button {
    background: linear-gradient(135deg, #f79009 0%, #dc6803 100%);
    color: white;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 144, 9, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .guides-hero .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-guides-grid {
        grid-template-columns: 1fr;
    }
    
    .search-filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-controls {
        justify-content: center;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-input {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .guides-hero {
        padding: 60px 0;
    }
    
    .guides-hero .hero-content h1 {
        font-size: 28px;
    }
    
    .guides-hero .subtitle {
        font-size: 16px;
    }
    
    .hero-stat .stat-value {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .category-card,
    .guide-card {
        padding: 20px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .guide-image {
        height: 160px;
    }
    
    .guide-content {
        padding: 16px;
    }
    
    .guide-content h3 {
        font-size: 18px;
    }
    
    .newsletter-text h2 {
        font-size: 24px;
    }
    
    .newsletter-text p {
        font-size: 16px;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #f79009;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
