/* Home Page Specific Styles - Professional Enterprise Edition */

.hero-section {
    height: 85vh; /* Reduced from 100vh to show more content */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(124, 58, 237, 0.03) 0px, transparent 50%);
    padding: 0;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600; /* Lighter weight */
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--secondary-color);
}

.text-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* Professional Search Box */
.search-hero-wrapper {
    position: relative;
    z-index: 100;
    max-width: 640px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.search-box-premium {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.search-box-premium:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-input-field {
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    font-weight: 500;
    color: var(--secondary-color);
}

.search-results-v6 {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    margin-top: 8px;
    z-index: 1000;
    overflow: hidden;
    display: none;
    border: 1px solid var(--border-color);
    text-align: left;
}

.search-result-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-soft);
}

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

.search-result-item:hover {
    background: var(--bg-alt);
    padding-left: 20px;
}

.search-result-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.suggestion-header {
    padding: 10px 16px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.search-active .search-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.search-active {
    overflow: hidden;
}

/* Stock Chips */
.stock-chip {
    background: white;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.stock-chip:hover {
    border-color: var(--primary-color);
    background: var(--bg-body);
}

.stock-chip .symbol {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.stock-chip .change {
    font-size: 0.75rem;
    font-weight: 600;
}

.stock-chip.up .change { color: var(--accent-success); }
.stock-chip.down .change { color: var(--accent-danger); }

.sparkline {
    width: 30px;
    height: 15px;
    stroke-width: 2;
    fill: none;
}

/* News Cards */
.news-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    transition: all 0.2s ease;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.news-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    z-index: 1;
}

.news-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.news-summary {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Mobile Swiper */
@media (max-width: 767.98px) {
    .home-swipe-container {
        height: 480px !important;
    }
    .swiper-card-wrapper {
        padding: 0 10px;
    }
    .home-swipe-container .news-card {
        border-radius: var(--radius-lg);
    }
}
