/**
 * File: assets/css/home.css
 */

/* BoilerplateHub-inspired Home Page Styles */
.home-page {
    background: #ffffff;
    min-height: 100vh;
}

/* Debug Toggle */
.debug-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'SF Mono', monospace;
    font-size: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.debug-btn {
    color: #60a5fa;
    text-decoration: none;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.debug-btn:hover {
    background: #374151;
}

.debug-btn.active {
    background: #10b981;
    color: white;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
}

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

.hero-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 22px;
    color: #64748b;
    margin-bottom: 48px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.hero-search-input {
    width: 100%;
    padding: 20px 24px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    font-size: 16px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.hero-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 8px 25px rgba(0,0,0,0.1);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    margin-top: 8px;
    z-index: 100;
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
}

/* Filter Section */
.filter-section {
    padding: 60px 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.filter-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.filter-count {
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
}

.filter-groups {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.filter-group {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.filter-label {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    min-width: 120px;
    margin-top: 8px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-tag {
    padding: 8px 16px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-tag:hover,
.filter-tag.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.tag-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.filter-tag.active .tag-count {
    background: rgba(255,255,255,0.3);
}

/* Reports Section */
.reports-section {
    padding: 80px 0;
    background: #fafafa;
}

.reports-header {
    margin-bottom: 48px;
    text-align: center;
}

.reports-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
}

.reports-subtitle {
    color: #64748b;
    font-size: 18px;
    font-weight: 400;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

/* Report Cards */
.report-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
    height: fit-content;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.report-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

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

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

.report-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8;
}

.report-content {
    padding: 24px;
}

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

.report-platform-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-time {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

.report-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0f172a;
}

.report-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.report-title a:hover {
    color: #3b82f6;
}

.report-tags-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.report-tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.report-tag.scam-type {
    background: #fef2f2;
    color: #dc2626;
}

.report-tag.location {
    background: #f0fdf4;
    color: #16a34a;
}

.report-tag.amount {
    background: #fff7ed;
    color: #ea580c;
}

.report-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}

.report-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.report-metrics {
    display: flex;
    gap: 16px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

.verified-indicator {
    background: #dcfce7;
    color: #16a34a;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
}

.empty-icon {
    margin-bottom: 24px;
    color: #94a3b8;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.empty-state p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 32px;
}

/* View All Section */
.view-all-section {
    text-align: center;
    margin-top: 48px;
}

/* Stats Section */
.stats-section {
    background: #f8fafc;
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
}

.section-header p {
    font-size: 18px;
    color: #64748b;
}

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

.stat-card {
    background: white;
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .filter-groups {
        gap: 24px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .filter-label {
        min-width: auto;
        margin-top: 0;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .debug-toggle {
        top: 60px;
        right: 10px;
        font-size: 10px;
    }
}
