/* 
 * home.css - Styling for Homepage Hero, trending, and results grid
 */
/* Stunning Modern Hero - Clean & Minimalist */
.hero {
    position: relative;
    background: linear-gradient(135deg, #022c22 0%, var(--primary) 100%);
    color: #fff;
    padding: 6rem 0 7rem;
    text-align: center;
    overflow: hidden;
    box-shadow: inset 0 -10px 30px rgba(0,0,0,0.1);
}
.hero::before, .hero::after {
    display: none;
}
.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    letter-spacing: -2.5px;
    line-height: 1.05;
    text-shadow: 0 10px 30px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #ffffff 30%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}
.hero p {
    font-size: 1.35rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}
.live-indicator {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(239, 68, 68, 0.4);
    margin-bottom: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}
.trending-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
    padding: 1.5rem 0 0;
}
.trending-item {
    background: rgba(255,255,255,0.08);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
    backdrop-filter: blur(5px);
}
.trending-item::before {
    content: '→';
    color: var(--secondary);
    font-weight: 950;
    opacity: 0.8;
}
.trending-item:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--secondary);
    transform: translateY(-2px);
}
/* Category Headers */
.cat-heading {
    margin: 4rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.75rem;
    font-weight: 900;
}
.cat-heading::after { content: ''; flex-grow: 1; height: 1px; background: #e2e8f0; }
/* High-Density Results Dashboard */
.result-card-premium {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: var(--shadow-md);
    will-change: transform, box-shadow;
    position: relative;
    overflow: hidden;
}
.result-card-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    opacity: 0;
    transition: opacity 0.4s ease;
}
.result-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-floating);
    border-color: rgba(6, 78, 59, 0.1);
}
.result-card-premium:hover::before {
    opacity: 1;
}
.card-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}
.draw-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.draw-row {
    display: grid;
    grid-template-columns: 65px 1fr auto;
    align-items: center;
    background: #f8fafc;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}
.draw-row:hover { 
    background: #fff; 
    border-color: rgba(6, 78, 59, 0.1);
    box-shadow: var(--shadow-sm);
    transform: scale(1.01);
}
.draw-time {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
}
.draw-result {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-left: 0.5rem;
    min-width: 0;
}
.draw-num {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    font-weight: 900;
    font-size: 0.95rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    min-width: 34px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(6, 78, 59, 0.2);
}
.draw-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 2-Column Dashboard Grid */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
/* Home News Section */
.home-news-section {
    margin-top: 6rem;
    padding-bottom: 5rem;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
}
.news-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    will-change: transform, box-shadow;
}
.news-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-floating);
    border-color: rgba(251, 191, 36, 0.3);
}
.news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #f3f4f6;
}
.news-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.news-tag { 
    font-size: 0.65rem; 
    font-weight: 900; 
    color: var(--primary); 
    text-transform: uppercase; 
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}
.news-title { 
    font-size: 1.1rem; 
    font-weight: 800; 
    color: var(--text-dark); 
    margin-bottom: 1rem;
    line-height: 1.3;
}
.news-excerpt { font-size: 0.85rem; color: #64748b; line-height: 1.6; margin-bottom: 1.5rem; }
/* Status Badges */
.status-badge {
    font-size: 0.65rem;
    font-weight: 900;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
}
.badge-live { background: #fee2e2; color: #ef4444; border: 1px solid #fecaca; }
.badge-today { background: #ecfdf5; color: #10b981; border: 1px solid #d1fae5; }
/* Skeleton State */
.skeleton-card {
    background: #fdfdfd;
    border: 2px dashed #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 2.5rem 1rem;
    text-align: center;
}
@media (max-width: 900px) {
    .results-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero { padding: 3rem 1rem 3rem 1rem !important; }
    .hero h1 { font-size: 1.5rem !important; margin-bottom: 0.5rem !important; letter-spacing: normal !important; line-height: 1.3 !important; }
    .hero p { font-size: 0.9rem !important; margin-bottom: 1.5rem !important; padding: 0 !important; }
    
    /* Lottery Page Mobile Fixes */
    .lottery-hero-logo { height: 80px !important; margin: 0 auto; display: block; }
    .lottery-hero-title { font-size: 1.75rem !important; text-align: center; line-height: 1.2 !important; letter-spacing: normal !important; }
    .lottery-hero-subtitle { font-size: 0.95rem !important; text-align: center; margin-top: 0.5rem !important; }
    .lottery-hero-text { text-align: center !important; width: 100%; }
    .hero-flex-container { flex-direction: column !important; gap: 1rem !important; }
    .history-filter-wrapper { flex-direction: column; align-items: stretch !important; padding: 1rem !important; text-align: center; }
    .history-filter-form { flex-direction: column; width: 100%; }
    .history-filter-form input, .history-filter-form button, .history-filter-form a { width: 100%; text-align: center; box-sizing: border-box; }
    .analyzer-title { font-size: 1.15rem !important; }
    .animal-details-flex { flex-direction: column; align-items: center !important; text-align: center; }
    .animal-details-img { width: 90px !important; height: 90px !important; }
    
    .live-indicator { margin-bottom: 1rem !important; font-size: 0.65rem !important; padding: 0.4rem 1rem !important; }
    
    .cat-heading { font-size: 1.15rem !important; margin: 4rem 0 1rem !important; }
    .cat-heading span { width: 34px !important; height: 34px !important; font-size: 1rem !important; }
    
    .result-card-premium { padding: 1.25rem !important; }
    .card-header-top { margin-bottom: 1rem !important; padding-bottom: 0.5rem !important; }
    .card-header-top h3 { font-size: 1rem !important; }
    
    .draw-row { padding: 0.5rem 0.65rem !important; grid-template-columns: 55px 1fr auto !important; }
    .draw-time { font-size: 0.7rem !important; }
    .draw-name { font-size: 0.75rem !important; }
    .draw-num { font-size: 0.85rem !important; padding: 0.2rem 0.4rem !important; }
    
    .home-news-section { margin-top: 3rem !important; padding-bottom: 3rem !important; }
    .home-news-section h2 { font-size: 1.15rem !important; }
    .home-news-section h2 span { width: 34px !important; height: 34px !important; font-size: 1rem !important; }
    .home-news-section > div > a { font-size: 0.85rem !important; }
    
    .news-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .news-body { padding: 1.25rem !important; }
    .news-tag { font-size: 0.6rem !important; margin-bottom: 0.5rem !important; }
    .news-title { font-size: 1rem !important; margin-bottom: 0.75rem !important; line-height: 1.3 !important; }
    .news-excerpt { font-size: 0.85rem !important; margin-bottom: 1rem !important; line-height: 1.4 !important; }
    .news-body a { font-size: 0.8rem !important; }
    
    .trending-item { font-size: 0.75rem !important; padding: 0.5rem 1rem !important; }
}
