/**
 * Forms and shared component styles
 * Used by: home_intro_sections, card_contacts, home_news_marquee
 */

/* Support CTA banner (homepage) */
.support-cta-banner {
    background: linear-gradient(135deg, #4a0a0a, #800000);
}

/* Intro section cards */
.intro-card {
    transition: transform 0.3s ease;
}

.intro-card:hover {
    transform: scale(1.02);
}

.intro-card-image-wrap {
    height: 450px;
}

.intro-card-badge {
    z-index: 2;
}

.intro-card-img {
    object-fit: cover;
}

.intro-card-overlay {
    background: linear-gradient(0deg, rgba(248, 249, 250, 0.95) 0%, rgba(248, 249, 250, 0) 100%);
}

/* Contact card */
.contacts-hero-bg {
    background: linear-gradient(to right, rgba(128, 0, 0, 0.6), rgba(128, 0, 0, 0.2)), url('../images/bg_contacts.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.contacts-hero-content {
    z-index: 1;
}

.contact-item {
    transition: transform 0.2s;
}

.contact-item:hover {
    transform: scale(1.02);
}

.contact-support-card {
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.1), rgba(128, 0, 0, 0.05));
    border: 1px solid rgba(128, 0, 0, 0.2);
    transition: transform 0.2s;
}

.contact-support-card:hover {
    transform: scale(1.02);
}

.contact-support-icon {
    background: #800000;
}

/* News marquee cards - display image fully (no cropping) */
.news-card-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    min-height: 200px;
    background: #1a1a1e;
    overflow: hidden;
    text-decoration: none;
}

.news-card-img-wrap:hover .news-card-img {
    opacity: 0.95;
}

.news-card-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.2s ease;
}

.news-card-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-card-placeholder i {
    font-size: 3rem;
}

/* News section - dark mode */
.news-section-dark {
    background: #0f0f12;
    padding-top: 2rem;
}

.news-section-dark__title {
    color: #fff !important;
}

.news-section-dark__subtitle {
    color: #adb5bd !important;
}

.news-card-dark {
    background: #1a1a1e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e8e8ea;
}

.news-card-dark .card-body {
    background: #1a1a1e;
}

.news-card-dark__date {
    color: #6b7280 !important;
}

.news-card-dark__title {
    color: #fff !important;
}

.news-card-dark__title:hover {
    color: #f87171 !important;
}

.news-card-dark__btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e8e8ea;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.news-card-dark__btn:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(248, 113, 113, 0.5);
    color: #f87171;
}

.news-card-placeholder--dark {
    background: linear-gradient(135deg, #2d2d33 0%, #1a1a1e 100%) !important;
}

.news-card-placeholder--dark i {
    color: #6b7280 !important;
}

.news-section-dark__btn-primary {
    background: #f87171 !important;
    border-color: #f87171 !important;
    color: #fff !important;
}

.news-section-dark__btn-primary:hover {
    background: #fb923c !important;
    border-color: #fb923c !important;
    color: #fff !important;
}

.news-section-dark__btn-outline {
    border-color: rgba(248, 113, 113, 0.5) !important;
    color: #f87171 !important;
}

.news-section-dark__btn-outline:hover {
    background: rgba(248, 113, 113, 0.15) !important;
    border-color: #f87171 !important;
    color: #f87171 !important;
}

/* Latest News Hero – above Match Highlights */
.latest-news-hero {
    position: relative;
    min-height: 380px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding: 3rem 0 3rem;
    margin: 2rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Background layer – ensures image fills card and respects rounded corners */
.latest-news-hero--has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #1a0a0a;
    background-image: var(--latest-news-hero-bg);
    -webkit-background-size: cover;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.latest-news-hero--no-image {
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1515 40%, #4a1a1a 100%);
}

.latest-news-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.2) 70%, transparent 100%),
        linear-gradient(135deg, rgba(122, 10, 10, 0.4) 0%, transparent 50%, rgba(139, 0, 0, 0.25) 100%);
    pointer-events: none;
}

.latest-news-hero--no-image .latest-news-hero__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.latest-news-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.latest-news-hero__inner {
    max-width: 720px;
}

.latest-news-hero__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f87171;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.3) 0%, rgba(220, 38, 38, 0.2) 100%);
    border: 1px solid rgba(248, 113, 113, 0.4);
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    margin-bottom: 0.5rem;
}

.latest-news-hero__date {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.latest-news-hero__title {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.latest-news-hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.latest-news-hero__btn {
    background: linear-gradient(145deg, #b91c1c 0%, #dc2626 50%, #ef4444 100%) !important;
    border: none !important;
    color: #fff !important;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(185, 28, 28, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.latest-news-hero__btn:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5) !important;
}

/* Latest News Hero – responsive */
@media (max-width: 991.98px) {
    .latest-news-hero {
        min-height: 320px;
        padding: 2rem 0 2rem;
        margin: 1.5rem 0;
    }

    .latest-news-hero__title {
        font-size: clamp(1.4rem, 5vw, 1.9rem);
    }

    .latest-news-hero__subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .latest-news-hero {
        min-height: 280px;
        padding: 1.5rem 1rem 1.5rem;
        margin: 1rem 0;
        border-radius: 0.5rem;
        -webkit-background-size: cover;
        background-size: cover;
        background-position: center center;
    }

    .latest-news-hero .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        max-width: 100%;
    }

    .latest-news-hero__badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .latest-news-hero__date {
        font-size: 0.8125rem;
    }

    .latest-news-hero__title {
        font-size: clamp(1.25rem, 6vw, 1.5rem);
    }

    .latest-news-hero__subtitle {
        font-size: 0.9375rem;
        line-height: 1.4;
    }

    .latest-news-hero__btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Notable profile cards */
.notable-profile-card {
    transition: transform 0.3s ease;
}

.notable-profile-card:hover {
    transform: scale(1.02);
}

.notable-profile-badge {
    z-index: 2;
}

.notable-profile-img {
    height: 250px;
    object-fit: cover;
    object-position: top;
}

.notable-profile-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    width: 100%;
}

/* Next game card logos */
.next-game-logo {
    max-height: 60px;
}

/* Social media cards (Instagram & Facebook) */
.social-card-link {
    display: block;
}

.social-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2) !important;
}

.social-card-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.social-card-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-card-instagram .social-card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.social-card-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5bbf 100%);
}

.social-card-facebook .social-card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.social-card-youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.social-card-youtube .social-card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Dark mode social cards */
[data-bs-theme="dark"] .social-card-instagram {
    background: linear-gradient(135deg, #c77a2e 0%, #c45530 25%, #b81f38 50%, #a81d58 75%, #981572 100%);
}

[data-bs-theme="dark"] .social-card-facebook {
    background: linear-gradient(135deg, #1a6ed8 0%, #0c4a9e 100%);
}

[data-bs-theme="dark"] .social-card-youtube {
    background: linear-gradient(135deg, #e60000 0%, #b30000 100%);
}
