/* Index Page Specific Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e90ff 0%, #1565c0 100%);
    color: white;
    padding: 3rem 1.5rem;
    border-radius: 8px;
    margin: 1rem auto 2rem;
    max-width: 1200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
}

.hero-section h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.95;
}

/* Feature Cards with Images */
.feature-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.feature-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid #1e90ff;
}

.feature-card-body {
    padding: 1.5rem;
}

.feature-card h2 {
    color: #1e90ff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-card h2 .icon {
    font-size: 1.8rem;
}

.feature-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Tool Links Styling */
.tool-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-links li {
    margin-bottom: 0.75rem;
}

.tool-links a {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    border-left: 3px solid #1e90ff;
}

.tool-links a:hover {
    background: #e9ecef;
    transform: translateX(5px);
    color: #1e90ff;
}

.tool-links .tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    margin-right: 12px;
    background: linear-gradient(135deg, #1e90ff 0%, #1565c0 100%);
    color: white;
    border-radius: 6px;
    font-size: 1rem;
    flex-shrink: 0;
}

.tool-links .tool-name {
    font-weight: 600;
    color: #1e90ff;
}

.tool-links .tool-desc {
    color: #666;
    font-size: 0.9rem;
    margin-left: 5px;
}

/* Guide Links */
.guide-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-links li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.guide-links li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #1e90ff;
    font-weight: bold;
}

.guide-links a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.guide-links a:hover {
    color: #1e90ff;
    text-decoration: underline;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin: 3rem 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #1e90ff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    color: #1e90ff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Quick Stats Bar */
.quick-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    max-width: 900px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e90ff;
    line-height: 1;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.category-card h3 {
    color: #1e90ff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-card .icon {
    font-size: 1.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #76B82A 0%, #5d9416 100%);
    color: white;
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 3rem auto;
    max-width: 900px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-section h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button-primary {
    background: white;
    color: #76B82A;
}

.cta-button-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cta-button-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .feature-image {
        height: 180px;
    }

    .quick-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* Popular Guides Highlight */
.popular-badge {
    display: inline-block;
    background: #ffa500;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #1e90ff;
    color: white;
    border-radius: 50%;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #1565c0;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ========== DARK MODE SUPPORT ========== */
@media (prefers-color-scheme: dark) {
    /* Feature Cards */
    .feature-card {
        background: #1e1e1e;
        border: 1px solid #333;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    .feature-card:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    }

    .feature-card h2 {
        color: #4da6ff;
    }

    .feature-card p {
        color: #b0b0b0;
    }

    /* Tool Links */
    .tool-links a {
        background: #2a2a2a;
        color: #e0e0e0;
        border-left: 3px solid #4da6ff;
    }

    .tool-links a:hover {
        background: #333;
        color: #4da6ff;
    }

    .tool-links .tool-name {
        color: #4da6ff;
    }

    .tool-links .tool-desc {
        color: #999;
    }

    /* Guide Links */
    .guide-links li:before {
        color: #4da6ff;
    }

    .guide-links a {
        color: #e0e0e0;
    }

    .guide-links a:hover {
        color: #4da6ff;
    }

    /* Section Headers */
    .section-header {
        border-bottom: 3px solid #4da6ff;
    }

    .section-header h2 {
        color: #4da6ff;
    }

    .section-header p {
        color: #999;
    }

    /* Quick Stats */
    .quick-stats {
        background: #2a2a2a;
        border: 1px solid #333;
    }

    .stat-number {
        color: #4da6ff;
    }

    .stat-label {
        color: #999;
    }

    /* Category Cards */
    .category-card {
        background: #1e1e1e;
        border: 1px solid #333;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    .category-card:hover {
        box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    }

    .category-card h3 {
        color: #4da6ff;
    }

    .category-card p {
        color: #b0b0b0;
    }

    /* CTA Section - Keep vibrant in dark mode */
    .cta-section {
        background: linear-gradient(135deg, #76B82A 0%, #5d9416 100%);
    }

    .cta-button-primary {
        background: white;
        color: #5d9416;
    }

    .cta-button-primary:hover {
        background: #f0f0f0;
    }

    /* Popular Badge */
    .popular-badge {
        background: #ff8c00;
        color: white;
    }

    /* Social Links - Keep vibrant */
    .social-link {
        background: #4da6ff;
    }

    .social-link:hover {
        background: #3d8fd9;
    }

    /* Additional text color fixes */
    .category-card ul li a {
        color: #e0e0e0;
    }

    .category-card ul li a:hover {
        color: #4da6ff;
    }

    /* Feature card body text improvements */
    .feature-card-body {
        background: #1e1e1e;
    }

    .feature-card-body p,
    .feature-card-body ul,
    .feature-card-body li {
        color: #b0b0b0;
    }

    /* Guide list improvements */
    .guide-links li {
        color: #e0e0e0;
    }

    /* Tool links text */
    .tool-links li {
        color: #e0e0e0;
    }

    /* All paragraph text in cards */
    .card p,
    .card-body p {
        color: #b0b0b0;
    }

    /* All list items in cards */
    .card li,
    .card-body li {
        color: #b0b0b0;
    }

    /* Section description text */
    .feature-card-body p:first-of-type {
        color: #b0b0b0 !important;
    }

    /* Force all text elements to proper colors */
    .feature-card h2,
    .feature-card .card-body h2,
    .feature-card-body h2 {
        color: #4da6ff !important;
    }

    .feature-card p,
    .feature-card .card-body p,
    .feature-card-body p {
        color: #b0b0b0 !important;
    }

    .feature-card li,
    .feature-card .card-body li,
    .feature-card-body li {
        color: #b0b0b0 !important;
    }

    .feature-card ul,
    .feature-card .card-body ul,
    .feature-card-body ul {
        color: #b0b0b0 !important;
    }

    /* Specific overrides for list item text */
    .guide-links li,
    .guide-links li a {
        color: #e0e0e0 !important;
    }

    .guide-links li a:hover {
        color: #4da6ff !important;
    }

    /* Tool links with proper colors */
    .tool-links a {
        background: #2a2a2a !important;
        color: #e0e0e0 !important;
    }

    .tool-links a:hover {
        background: #333 !important;
        color: #4da6ff !important;
    }

    .tool-links .tool-name {
        color: #4da6ff !important;
    }

    .tool-links .tool-desc {
        color: #999 !important;
    }

    /* All card backgrounds */
    .card {
        background: #1e1e1e !important;
        border: 1px solid #333 !important;
    }

    .card-body {
        background: #1e1e1e !important;
    }

    /* Override any inherited text colors */
    main p,
    main li,
    main ul {
        color: inherit;
    }

    .feature-card main p,
    .feature-card main li {
        color: #b0b0b0 !important;
    }
}
