/* static/css/hero.css */

.poster-hero {
    height: calc(100vh - 62px); /* Adjust based on your actual rendered header height */
    min-height: 550px;
    width: 100%;
    background-image: url("../img/poster.png");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    padding: 20px 6%;
    box-sizing: border-box;
    overflow: hidden;
}

.poster-hero::before { /* Left-side darkening gradient */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background: linear-gradient(to right, rgba(16, 16, 16, 0.95) 0%, rgba(16, 16, 16, 0.75) 55%, rgba(16, 16, 16, 0) 100%);
    z-index: 1;
}

.poster-hero-content-left {
    position: relative;
    z-index: 2;
    text-align: left;
    animation: heroContentFadeIn 1s ease-out forwards;
    max-width: 520px;
    margin-right: auto;
}

@keyframes heroContentFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.poster-hero-logo-left { /* SVG RBRP Abbreviated Name */
    width: 100%;
    max-width: 480px;
    min-width: 300px;
    height: auto;
    margin-bottom: -25px;
}

.poster-hero-actions-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

/* Primary CTA button on the poster */
.poster-hero-actions-left .action-link.primary-action {
    padding: 16px 45px;
    font-size: 1.15em;
    min-width: 280px;
    text-align: center;
    border-radius: 6px;
    font-family: 'Conthrax', sans-serif;
    font-weight: 700; /* Bold */
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    background-color: #ff8128;
    color: #101010;
    border: 2px solid #ff8128;
}
.poster-hero-actions-left .action-link.primary-action:hover {
    background-color: #e07018;
    border-color: #e07018;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 15px rgba(255, 129, 40, 0.25);
}

/* Secondary button on the poster ("Как начать играть?") */
.poster-hero-actions-left .action-link.secondary-action {
    padding: 16px 45px;
    font-size: 1.15em;
    min-width: 280px;
    text-align: center;
    border-radius: 6px;
    font-family: 'Conthrax', sans-serif;
    font-weight: 700; /* Bold */
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    background-color: rgba(40, 40, 40, 0.5); /* Semi-transparent dark background */
    color: #e0e0e0;
    border: 2px solid #555; /* Dark grey border */
}
.poster-hero-actions-left .action-link.secondary-action:hover {
    background-color: #4752C4;
    color: #fff;
    border-color: gray; /* Orange border on hover */
    transform: translateY(-3px) scale(1.02);
}

.scroll-indicator-wrapper {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 2.8em;
    animation: bounceIndicator 2s infinite;
    transition: color 0.3s ease;
}
.scroll-indicator:hover {
    color: #ff8128;
}

@keyframes bounceIndicator {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    60% { transform: translateY(-6px); }
}

/* Styles for the old .hero section, if used on other pages */
.hero {
    background-color: #1f1f1f; padding: 40px 30px; border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 129, 40, 0.2); border: 1px solid #ff8128;
    text-align: center; margin-bottom: 40px;
}
.hero h1 { /* For old .hero h1, if it's "RBRP" */
    font-family: 'High Speed', 'Conthrax', sans-serif;
    font-size: 3.5em; color: #ff8128; margin-top: 0; margin-bottom: 15px;
    font-weight: normal; /* High Speed has its own weight */
}
.hero .subtitle {
    /* font-family: 'Conthrax', sans-serif; -- УБРАНО */
    font-weight: 400; /* Regular */
    font-size: 1.5em; color: #e0e0e0; margin-bottom: 25px;
}
.hero .description {
    /* font-family: 'Conthrax', sans-serif; -- УБРАНО */
    font-weight: 400; /* Regular */
    font-size: 1.1em; color: #c0c0c0; line-height: 1.6;
    max-width: 700px; margin: 0 auto 30px auto;
}
.hero-actions .action-link {
    font-family: 'Conthrax', sans-serif; font-weight: 700; /* Bold */
    display: inline-block; padding: 12px 25px; background-color: #ff8128; color: #101010;
    text-decoration: none; border-radius: 4px; text-transform: uppercase;
    transition: background-color 0.2s ease, transform 0.2s ease; font-size: 1em; border: 2px solid #ff8128;
}
.hero-actions .action-link:hover { background-color: #e07018; transform: translateY(-2px); }
.hero-actions .action-link.secondary { background-color: transparent; color: #ff8128; }
.hero-actions .action-link.secondary:hover { background-color: rgba(255, 129, 40, 0.1); color: #ff8128; }

/* Hide old .hero if it's on the main page and poster_hero is used */
.main-content-area > .hero {
    display: none;
}