


.home-hero {
    position: relative;
    padding: 4rem 2rem 5rem;
    text-align: center;
    overflow: hidden;
    margin: -24px -24px 0;
    background: linear-gradient(135deg, #134e4a 0%, #0f766e 50%, #14b8a6 100%);
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 40%);
    pointer-events: none;
}

.home-hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.home-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.home-hero-title .gradient-text {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.home-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}


.home-hero-auth {
    padding: 3rem 2rem;
}

.home-hero-greeting {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
}

.home-hero-title-sm {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}


.home-stats {
    background: white;
    border-radius: var(--radius-xl);
    margin: -2rem 0 2rem;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.home-stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #e2e8f0;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.home-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
}

.home-stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
}

.home-stat-icon-accent {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.home-stat-content {
    display: flex;
    flex-direction: column;
}

.home-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.home-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}


.home-section {
    margin-bottom: 3rem;
}

.home-section-muted {
    opacity: 0.9;
}

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.home-section-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-section-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
}

.home-section-badge-hot {
    background: linear-gradient(135deg, #991b1b, #b91c1c);
}

.home-section-badge-new {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.home-section-badge-urgent {
    background: linear-gradient(135deg, #92400e, #b45309);
}

.home-section-badge-done {
    background: linear-gradient(135deg, #047857, #059669);
}

.home-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.home-section-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: gap var(--transition-fast);
}

.home-section-link:hover {
    gap: 0.75rem;
}


.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}


.ref-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
    overflow: hidden;
}

.ref-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.ref-card-body {
    padding: 1.5rem;
    flex: 1;
}

.ref-card-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.ref-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ref-badge-publico {
    background: #ccfbf1;
    color: #0f766e;
}

.ref-badge-ofuscado {
    background: #e0e7ff;
    color: #4338ca;
}

.ref-badge-privado {
    background: #fce7f3;
    color: #be185d;
}

.ref-badge-active {
    background: #d1fae5;
    color: #065f46;
}

.ref-badge-closed {
    background: #f3f4f6;
    color: #6b7280;
}

.ref-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.ref-card-title a {
    color: var(--text-color);
    transition: color var(--transition-fast);
}

.ref-card-title a:hover {
    color: var(--primary-color);
}

.ref-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ref-card-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ref-tag {
    padding: 0.25rem 0.5rem;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ref-card-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ref-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 0;
    flex: 1;
    max-width: 60%;
}

.ref-card-author {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ref-card-author svg {
    flex-shrink: 0;
}

.ref-card-votes {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.ref-card-action {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: gap var(--transition-fast);
}

.ref-card-action:hover {
    gap: 0.625rem;
}

/* @keyframes fadeInUp defined in style.css */

@media (max-width: 900px) {
    .home-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding: 3rem 1.5rem 4rem;
        margin: -24px -16px 0;
    }

    .home-stats {
        margin: -1.5rem 0 1.5rem;
    }

    .home-stats-container {
        grid-template-columns: 1fr 1fr;
    }

    .home-stat {
        padding: 1rem;
    }

    .home-stat-icon {
        width: 40px;
        height: 40px;
    }

    .home-stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .home-stat-value {
        font-size: 1.25rem;
    }

    .home-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }
}
