/* ===============================================
   VVS ROTSELAAR – INDEX / HOME PAGE STYLES  v2
   =============================================== */

/* ── Announcement Banner ── */
.announcement-banner {
    background: var(--primary-blue);
    background: linear-gradient(90deg, #0B1D3A 0%, #003380 40%, #0047AB 70%, #003380 100%);
    color: var(--white);
    overflow: hidden;
    position: relative;
    height: 42px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Shimmer sweep */
.announcement-banner::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    animation: banner-shimmer 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes banner-shimmer {
    0%   { left: -60%; }
    100% { left: 120%; }
}

.announcement-content {
    display: flex;
    white-space: nowrap;
    animation: scroll-announcement 40s linear infinite;
}

.announcement-item {
    display: inline-flex;
    align-items: center;
    padding: 0 3.5rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.92) !important;
}

.announcement-item::before {
    content: '';
    display: inline-block;
    width: 18px; height: 18px;
    margin-right: 0.7rem;
    background-image: url('../assets/bier.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    opacity: 0.85;
}

.announcement-item:has(.announcement-icon-emoji)::before,
.announcement-item:has(.announcement-icon-img)::before { display: none; }

.announcement-icon-emoji {
    display: inline-block;
    font-size: 1em; margin-right: 0.5rem;
    vertical-align: middle; line-height: 1;
}

.announcement-icon-img {
    display: inline-block;
    width: 18px; height: 18px;
    object-fit: contain; vertical-align: middle; margin-right: 0.5rem;
    opacity: 0.9;
}

@keyframes scroll-announcement {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.announcement-banner:hover .announcement-content {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .announcement-banner { height: 38px; }
    .announcement-item   { font-size: 0.88rem; padding: 0 2rem; }
}

/* ── Hero Section ── */
.hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    background: var(--header-bg);
    overflow: hidden;
}

@media (max-width: 900px) {
    .hero-section { height: auto; aspect-ratio: 2 / 1; }
}

/* Carousel */
.carousel-container {
    position: relative; width: 100%; height: 100%;
}

.carousel-slide {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0;
    transition: opacity 0.9s ease;
}
.carousel-slide.active { opacity: 1; }

/* Subtle bottom vignette on hero */
.carousel-container::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(11,29,58,0.55), transparent);
    pointer-events: none;
    z-index: 2;
}

.carousel-dots {
    position: absolute;
    bottom: 18px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 10px;
    z-index: 10;
}

.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 1.5px solid rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    cursor: pointer;
}
.dot.active,
.dot:hover {
    background: var(--white);
    width: 24px; border-radius: 4px;
}

/* Start Match Button */
.start-match-container {
    position: absolute; top: 0; left: 0; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    background: rgba(8,18,38,0.88);
    padding: 1rem;
    backdrop-filter: blur(2px);
}

.start-match-btn-group {
    display: flex; flex-direction: column;
    align-items: center; gap: 1rem;
}

.start-match-btn {
    padding: 1.4rem 4rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--white);
    color: var(--primary-blue);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,71,171,0.3), 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    animation: pulse-btn 2.2s infinite;
    border: none; cursor: pointer;
    font-family: 'Barlow Condensed', sans-serif;
}

.start-match-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,71,171,0.4), 0 4px 12px rgba(0,0,0,0.3);
}

@keyframes pulse-btn {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.03); }
}

.wijzig-lineup-btn {
    padding: 0.6rem 1.6rem;
    font-size: 0.9rem; font-weight: 700;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.85) !important;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: var(--radius);
    cursor: pointer; transition: all 0.2s;
    background: transparent;
}
.wijzig-lineup-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
    color: #fff !important;
}

.lineup-saved-badge {
    padding: 0.55rem 1.4rem;
    background: rgba(29,185,84,0.9);
    color: var(--white); border-radius: var(--radius);
    font-size: 0.95rem; font-weight: 700;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .start-match-btn { padding: 1.2rem 2.5rem; font-size: 1.5rem; }
    .wijzig-lineup-btn { font-size: 0.85rem; }
}

/* ── Live Match Overlay ── */
.live-match-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(8,18,38,0.90);
    backdrop-filter: blur(3px);
    z-index: 10;
    display: none;
    align-items: center; justify-content: center; padding: 20px;
}

.live-overlay-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    max-width: 680px; width: 100%;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    text-align: center;
    animation: slideIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
    border-top: 3px solid var(--primary-blue);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)     scale(1); }
}

.live-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 0.9rem;
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.live-badge.live     { background: var(--danger); color: white; animation: pulse-live 2s infinite; }
.live-badge.rust     { background: var(--warning); color: var(--header-bg); }
.live-badge.finished { background: var(--text-gray); color: white; }
.live-badge.bezig    { background: #F97316; color: #fff; }

@keyframes pulse-live { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

.overlay-match-info {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 28px; align-items: center;
    margin-bottom: 28px;
}

.overlay-team { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.overlay-team h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.45rem; color: var(--text-dark);
    font-weight: 700; margin: 0; letter-spacing: 0.05em;
}

.overlay-score {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.5rem; font-weight: 800;
    color: var(--primary-blue); line-height: 1;
}

.overlay-center { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.overlay-time {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.9rem; font-weight: 700;
    color: var(--primary-blue);
    background: var(--off-white);
    padding: 10px 22px; border-radius: var(--radius);
    letter-spacing: 1px;
}

.overlay-separator { font-size: 1.8rem; color: var(--border-color); font-weight: 300; }

.overlay-watch-btn {
    background: var(--primary-blue); color: white; border: none;
    padding: 14px 44px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: var(--radius); cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,71,171,0.3);
}
.overlay-watch-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,71,171,0.4);
}

@media (max-width: 768px) {
    .live-overlay-card { padding: 18px 16px 16px; border-radius: var(--radius); }
    .live-badge        { margin-bottom: 12px; font-size: 0.82rem; padding: 5px 14px; }
    .overlay-match-info { gap: 8px; margin-bottom: 14px; }
    .overlay-team      { gap: 6px; }
    .overlay-team h2   { font-size: 0.95rem; }
    .overlay-score     { font-size: 1.9rem; }
    .overlay-time      { font-size: 1.1rem; padding: 6px 12px; }
    .overlay-separator { font-size: 1.2rem; }
    .overlay-watch-btn { padding: 12px 24px; font-size: 1rem; width: 100%; }
}

@media (max-width: 480px) {
    .live-match-overlay  { padding: 12px; }
    .live-overlay-card   { padding: 14px 12px 12px; }
    .overlay-team h2     { font-size: 0.82rem; }
    .overlay-score       { font-size: 1.5rem; }
    .overlay-center      { gap: 5px; }
}

/* ── Team Buttons Section ── */
.teams-section {
    padding: 2.5rem 1.1rem;
    max-width: 1600px;
    margin: 0 auto;
}

.team-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-button {
    position: relative;
    aspect-ratio: 2 / 1;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
    display: block;
    text-decoration: none;
}

.team-button:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 48px rgba(11,29,58,0.28);
}

/* Permanent dark gradient overlay */
.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,18,38,0.78) 0%, rgba(8,18,38,0.15) 25%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.75rem;
    transition: background 0.3s ease;
}

.team-button:hover .team-overlay {
    background: linear-gradient(to top, rgba(0,51,128,0.82) 0%, rgba(0,71,171,0.30) 55%, transparent 100%);
}

/* Blue accent line on hover */
.team-overlay::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--primary-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.team-button:hover .team-overlay::before { transform: scaleX(1); }

.team-overlay h2 {
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    position: relative; z-index: 1;
    transition: transform 0.3s ease;
}
.team-button:hover .team-overlay h2 { transform: translateY(-4px); }

@media (max-width: 768px) {
    .team-buttons { grid-template-columns: 1fr; gap: 1.25rem; }
    .team-overlay h2 { font-size: 1.65rem; }
}