/* Index page specific styles */

/* Hero section */
.hero-section {
    background: url('/images/index_banner.png');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 100px 30px;
    margin: 50px 0;
    text-align: center;
    color: white;
    box-shadow: 0 10px 40px rgba(58, 90, 64, 0.3);
}

.hero-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    text-align: left;
    margin: 0 auto; /* center the title container within the hero */
    width: min(86%, 900px); /* stay centered but keep a predictable left edge */
    display: flex;
    align-items: baseline;
    gap: 0.6rem; /* spacing between fixed word and rotating text */
    transform: translateX(-8%); /* nudge slightly left on all screen sizes */
}



.hero-text {
    opacity: 0.95;
    text-align: center;
}

.btn-sport {
    background: #D97742;
    border-width: 1.5px;
    border-radius: 8px;
    font-size: 16px;
    padding: 6px 15px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

/* Text rotation animation */
#rotating-text {
    display: inline-block;
    text-align: left;
    position: relative;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.fade-out {
    animation: fadeOut 0.5s ease-out;
}

.info-cards {
    margin-bottom: 30px;
}

/* Latest Activities Section */
.latest-activities-card {
    background: var(--card-bg);
}

.latest-activities-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    max-height: 280px;
    overflow-y: auto;
}

.latest-activities-list::-webkit-scrollbar {
    width: 6px;
}

.latest-activities-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.latest-activities-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.latest-activities-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.latest-activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.latest-activity-item:last-child {
    border-bottom: none;
}

.latest-activity-item:hover {
    background-color: rgba(167, 201, 87, 0.1);
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 6px;
}

.activity-name {
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
    padding-right: 15px;
}

.activity-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.see-more-link {
    color: var(--sport-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.see-more-link:hover {
    color: var(--sport-secondary);
    gap: 12px;
}

.see-more-link i {
    transition: transform 0.3s ease;
}

.see-more-link:hover i {
    transform: translateX(4px);
}

.promo-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--sport-primary), var(--sport-secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
/* Promoted activities carousel */
.promoted-carousel .carousel-item {
    min-height: 160px;
}

.promoted-carousel .promoted-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical centering */
    align-items: flex-start;
    background: var(--card-bg);
    border-left: 4px solid #D97742;
    border-radius: 6px;
}

.promoted-card a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

.promoted-card a:hover {
    color: var(--sport-primary);
}

/* Improved carousel controls */
.promoted-carousel .carousel-control-prev,
.promoted-carousel .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: background 0.15s ease, transform 0.15s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.08);
}

/* Position controls slightly outside the card to avoid covering content or the left accent border */
.promoted-carousel .carousel-control-prev {
    left: -18px;
}

.promoted-carousel .carousel-control-next {
    right: -18px;
}

.promoted-carousel .carousel-control-prev:hover,
.promoted-carousel .carousel-control-next:hover {
    background: rgba(0,0,0,0.5);
    transform: translateY(-50%) scale(1.06);
}

.promoted-carousel .carousel-control-prev-icon,
.promoted-carousel .carousel-control-next-icon {
    background-size: 22px 22px;
    filter: invert(1) brightness(1.15);
    opacity: 1;
}

/* Make controls more prominent on small screens */
@media (max-width: 576px) {
    .promoted-carousel .carousel-control-prev,
    .promoted-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    .promoted-carousel .carousel-control-prev { left: -14px; }
    .promoted-carousel .carousel-control-next { right: -14px; }
}

/* Give promoted card a bit more left padding so content doesn't touch the left accent */
.promoted-carousel .promoted-card {
    padding: 20px;
}


/* Responsive design */

/* Slightly larger breakpoint to handle tablet landscape / small laptops */
@media (max-width: 992px) {
    .hero-section {
        padding: 70px 25px;
        margin: 40px 0;
    }

    .hero-title {
        font-size: 2.25rem;
        white-space: nowrap;
        width: min(86%, 740px);
        text-align: left;
    }

    #rotating-text {
        min-width: 0;
        max-width: 55%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
        margin: 30px 0;
    }
    
    .hero-title {
        margin-top: 20px;
        font-size: 2rem;
        white-space: nowrap;
        width: min(86%, 640px);
        text-align: left;
    }

    #rotating-text {
        min-width: 0;
        max-width: 60%;
        width: auto;
        margin-top: 0;
        text-align: center;
        white-space: nowrap;
        display: inline-block;
    }
    .latest-activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .activity-date {
        font-size: 0.85rem;
    }
    
    .latest-activities-list {
        max-height: 240px;
    }

@media (max-width: 576px) {
    .hero-section {
        padding: 30px 15px;
        margin: 20px 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        white-space: nowrap;
        width: 90%;
        text-align: left;
        line-height: 1.15;
        transform: translateX(-8%); /* stronger left nudge for narrow mobile view */
    }
    
    #rotating-text {
        min-width: 0;
        width: auto;
        max-width: 100%;
        margin: 10px auto 0;
        white-space: nowrap;
        display: inline-block;
    }
    .latest-activities-list {
        max-height: 200px;
    }
    
    .promo-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
    
    .activity-name {
        font-size: 0.95rem;
    }
}


@media (max-width: 400px) {
    .hero-title {
        transform: translateX(-20%); /* stronger left nudge for narrow mobile view */
    }
}