/* Home page styles — scoped to main content */

.home-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: var(--bg-base);
    overflow: hidden;
}

.home-hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(10, 11, 13, 0.7), rgba(10, 11, 13, 0.4));
}

.home-hero__number {
    position: absolute;
    top: 10%;
    right: 2%;
    z-index: 1;
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 800;
    font-size: clamp(6rem, 10vw, 10rem);
    line-height: 1;
    color: var(--accent-volt);
    opacity: 0.15;
    pointer-events: none;
    user-select: none;
}

.home-hero__diagonal {
    position: absolute;
    top: -20%;
    left: 55%;
    width: 2px;
    height: 140%;
    background-color: var(--accent-volt);
    opacity: 0.3;
    transform: rotate(20deg);
    z-index: 1;
    pointer-events: none;
}

.home-hero__container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-lg);
    padding-block: var(--space-4xl) var(--space-2xl);
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding-mobile);
}

.home-hero__content {
    grid-column: 1 / 8;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: flex-start;
    min-width: 0;
}

.home-hero__title {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 800;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-block-end: 0;
    overflow-wrap: break-word;
    max-width: 100%;
}

.home-hero__accent {
    color: var(--accent-volt);
}

.home-hero__subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 60ch;
    margin-block-end: 0;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
}

.home-hero__media {
    grid-column: 8 / 13;
    position: relative;
    min-width: 0;
    align-self: center;
}

.home-hero__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--corner-clip)), calc(100% - var(--corner-clip)) 100%, 0 100%);
    border: 1px solid var(--border-steel);
}

.home-hero__info-strip {
    position: relative;
    z-index: 2;
    width: 100%;
    background-color: var(--bg-steel);
    border-top: 1px solid var(--border-steel);
    padding-block: var(--space-md);
}

.home-hero__info-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding-mobile);
}

.home-hero__info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    min-width: 0;
}

.home-hero__info-label {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--accent-volt);
}

.home-hero__info-value {
    font-size: 0.875rem;
    color: var(--text-secondary);
    overflow-wrap: break-word;
}

/* Sections */
.home-section {
    position: relative;
    padding-block: var(--space-4xl);
    overflow: hidden;
}

.home-section--steel {
    background-color: var(--bg-steel);
    border-top: 1px solid var(--border-steel);
    border-bottom: 1px solid var(--border-steel);
}

.home-section--base {
    background-color: var(--bg-base);
}

.home-section__heading {
    position: relative;
    margin-block-end: var(--space-2xl);
    z-index: 1;
}

.home-section__heading--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-section__number {
    position: absolute;
    top: -0.5em;
    left: -0.1em;
    z-index: -1;
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 800;
    font-size: clamp(4rem, 8vw, 8rem);
    line-height: 1;
    color: var(--accent-volt);
    opacity: 0.15;
    pointer-events: none;
    user-select: none;
}

.home-section__title {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.0;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-block-end: 0;
    overflow-wrap: break-word;
}

.home-section__diagonal {
    position: absolute;
    top: 0;
    right: 10%;
    width: 2px;
    height: 100%;
    background-color: var(--accent-volt);
    opacity: 0.2;
    transform: rotate(20deg);
    pointer-events: none;
}

/* Pokerový sál */
.home-salon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.home-feature-card {
    background-color: var(--bg-steel-raised);
    border: 1px solid var(--border-steel);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--corner-clip)), calc(100% - var(--corner-clip)) 100%, 0 100%);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-width: 0;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.home-feature-card:hover {
    border-color: var(--accent-volt);
    transform: translateY(-2px);
}

.home-feature-card__icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-volt-soft);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
    flex-shrink: 0;
}

.home-feature-card__title {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--text-primary);
    margin-block-end: 0;
}

.home-feature-card__text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 35ch;
    margin-block-end: 0;
}

/* Hry a limity */
.home-games-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: var(--space-2xl);
    position: relative;
    z-index: 1;
    align-items: start;
}

.home-games-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-width: 0;
}

.home-games-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 60ch;
    margin-block-end: 0;
}

.home-games-panel {
    background-color: var(--bg-steel);
    border: 1px solid var(--border-steel);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--corner-clip)), calc(100% - var(--corner-clip)) 100%, 0 100%);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-width: 0;
}

.home-games-panel__title {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--text-primary);
    margin-block-end: 0;
}

.home-games-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-block-end: 0;
}

.home-games-list li {
    padding-inline-start: var(--space-lg);
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.home-games-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 2px;
    background-color: var(--accent-volt);
}

/* Návštěva */
.home-visit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.home-visit-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: 0;
    padding: var(--space-lg);
    background-color: var(--bg-steel-raised);
    border: 1px solid var(--border-steel);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--corner-clip)), calc(100% - var(--corner-clip)) 100%, 0 100%);
}

.home-visit-item__label {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--accent-volt);
}

.home-visit-item__value {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    overflow-wrap: break-word;
    max-width: 30ch;
}

/* Restaurace */
.home-restaurant {
    padding-block: var(--space-3xl);
}

.home-restaurant__content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-start;
}

.home-restaurant__content .home-section__heading {
    margin-block-end: 0;
}

.home-restaurant__text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 60ch;
    margin-block-end: 0;
}

.home-restaurant__link {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.875rem;
    color: var(--accent-volt);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color var(--transition-fast);
}

.home-restaurant__link:hover {
    color: var(--accent-volt-dim);
}

/* CTA */
.home-cta {
    background-color: var(--bg-base);
    border-top: 1px solid var(--border-steel);
    padding-block: var(--space-5xl);
    position: relative;
    overflow: hidden;
}

.home-cta__diagonal {
    position: absolute;
    top: -30%;
    left: 20%;
    width: 2px;
    height: 160%;
    background-color: var(--accent-volt);
    opacity: 0.25;
    transform: rotate(20deg);
    pointer-events: none;
}

.home-cta__content {
    max-width: 600px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    text-align: center;
    position: relative;
    z-index: 1;
}

.home-cta__content .home-section__heading {
    margin-block-end: 0;
}

.home-cta__button {
    flex-shrink: 0;
}

.home-cta__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 40ch;
}

.home-cta__contact-label {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--accent-volt);
}

.home-cta__contact-value {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.home-cta__contact-value:hover {
    color: var(--accent-volt);
}

.home-cta__contact-separator {
    color: var(--text-muted);
}

/* Tablet */
@media (max-width: 1024px) {
    .home-hero__container {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        padding-block: var(--space-3xl) var(--space-xl);
    }

    .home-hero__content {
        grid-column: 1 / 6;
    }

    .home-hero__media {
        grid-column: 6 / 9;
    }

    .home-hero__title {
        font-size: clamp(2.8rem, 7vw, 5rem);
    }

    .home-salon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-feature-card:last-child {
        grid-column: 1 / -1;
    }

    .home-games-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .home-games-text p {
        max-width: 100%;
    }

    .home-visit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-visit-item:last-child {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .home-hero {
        min-height: 70vh;
    }

    .home-hero__container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding-inline: var(--container-padding-mobile);
        padding-block: var(--space-2xl) var(--space-xl);
    }

    .home-hero__content {
        grid-column: 1;
        gap: var(--space-md);
    }

    .home-hero__title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        line-height: 1.0;
    }

    .home-hero__subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    .home-hero__actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .home-hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .home-hero__media {
        display: none;
    }

    .home-hero__number {
        font-size: 4rem;
        top: 5%;
        right: 5%;
        opacity: 0.2;
    }

    .home-hero__diagonal {
        left: 70%;
    }

    .home-hero__info-container {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .home-hero__info-item {
        flex-direction: row;
        align-items: baseline;
        gap: var(--space-sm);
        flex-wrap: wrap;
    }

    .home-section {
        padding-block: var(--space-3xl);
    }

    .home-section__number {
        font-size: 4rem;
        top: -0.3em;
    }

    .home-section__title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .home-salon-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .home-feature-card:last-child {
        grid-column: auto;
    }

    .home-feature-card__text {
        max-width: 100%;
    }

    .home-games-grid {
        grid-template-columns: 1fr;
    }

    .home-visit-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .home-visit-item:last-child {
        grid-column: auto;
    }

    .home-visit-item__value {
        max-width: 100%;
    }

    .home-restaurant {
        padding-block: var(--space-2xl);
    }

    .home-restaurant__content {
        max-width: 100%;
    }

    .home-cta {
        padding-block: var(--space-4xl);
    }

    .home-cta__content {
        gap: var(--space-lg);
    }

    .home-cta__contact {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xs);
    }

    .home-cta__contact-separator {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-feature-card,
    .home-restaurant__link,
    .home-cta__contact-value {
        transition: none;
    }

    .home-feature-card:hover {
        transform: none;
    }
}