/* Styles for app/views/home.php (loaded only on that page). */

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px 48px;
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    background: var(--color-bg);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Recent Filings Grid */
.recent-filings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
}

.filing-card {
    display: block;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.filing-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filing-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.filing-ticker {
    font-weight: 700;
    font-size: 18px;
    color: var(--color-primary);
}

.filing-exchange {
    font-size: 11px;
    padding: 2px 6px;
    background: var(--color-bg-card);
    border-radius: 4px;
    color: var(--color-text-muted);
}

.filing-name {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.filing-metrics {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.filing-metric {
    flex: 1;
}

.filing-metric-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.filing-metric-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-secondary);
}

.filing-metric-value.negative {
    color: var(--color-danger);
}

.filing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--color-text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.filing-period {
    font-weight: 500;
}

/* Features Section */
.features-section {
    margin-top: 60px;
    padding: 48px 0;
    background: var(--color-bg);
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.features-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 32px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 60px 20px;
    margin-top: 40px;
}

.cta-section h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.cta-section p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Card Footer */
.card-footer {
    border-top: 1px solid var(--color-border);
}

/* Hero Video */
.hero-video-wrapper {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-video-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    background: #000;
    cursor: pointer;
}

.hero-video-poster,
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.hero-video-play:hover {
    background: rgba(0, 102, 204, 0.75);
    transform: translate(-50%, -50%) scale(1.08);
}

.hero-video-play-icon {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

.hero-video-play.hidden {
    display: none;
}

.hero-video-caption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
}

@media (max-width: 480px) {
    .hero-video-container {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        max-width: none;
    }

    .hero-video-play {
        width: 56px;
        height: 56px;
    }

    .hero-video-play-icon {
        border-width: 10px 0 10px 18px;
        margin-left: 3px;
    }
}
