/* Home Page Styles */

.home-page .content-wrapper {
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Search Section */
.hero-search {
    background: linear-gradient(135deg, #1a1f36 0%, #2d3561 50%, #3b82f6 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    border-radius: 16px;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.search-wrapper {
    display: flex;
    justify-content: center;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    outline: none;
    background: transparent;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-btn:hover {
    background: #2563eb;
}

/* Section Styling */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Screener Links Section */
.screener-links {
    margin-bottom: 3rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.screener-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
}

.screener-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
}

.screener-card .card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.screener-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.screener-card p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.screener-card--all {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: transparent;
}

.screener-card--all h3,
.screener-card--all p {
    color: #ffffff;
}

.screener-card--all:hover {
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Market Movers Section */
.market-movers {
    margin-bottom: 3rem;
}

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

.mover-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.mover-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.mover-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.mover-icon {
    font-size: 1.25rem;
}

.mover-header--gainers {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.15) 0%, transparent 100%);
    border-left: 3px solid #22c55e;
}

.mover-header--losers {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.15) 0%, transparent 100%);
    border-left: 3px solid #ef4444;
}

.mover-header--active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, transparent 100%);
    border-left: 3px solid #3b82f6;
}

.mover-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mover-item {
    border-bottom: 1px solid #f3f4f6;
}

.mover-item:last-child {
    border-bottom: none;
}

.mover-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    text-decoration: none;
    transition: background 0.15s ease;
}

.mover-item a:hover {
    background: #f9fafb;
    text-decoration: none;
}

.stock-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.stock-symbol {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.stock-name {
    font-size: 0.8rem;
    color: #6b7280;
}

.stock-change {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

.stock-change--positive {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.1);
}

.stock-change--negative {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
}

.stock-price {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.view-all-link {
    display: block;
    text-align: center;
    padding: 0.875rem;
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
    border-top: 1px solid #e5e7eb;
    transition: background 0.15s ease;
}

.view-all-link:hover {
    background: #f9fafb;
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-search {
        padding: 2rem 1.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-btn {
        justify-content: center;
    }
    
    .movers-grid {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .links-grid {
        grid-template-columns: 1fr;
    }
}
