/* ===== LIVE PAGE CSS ===== */

/* Why-live cards */
#why-live {
    background: var(--background-color);
}

#why-live .content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.live-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.live-why-card {
    background: rgba(210, 208, 208, 0.04);
    border: 1px solid rgba(210, 208, 208, 0.1);
    border-radius: 8px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.2s;
}

.live-why-card:hover {
    border-color: rgba(57, 190, 255, 0.35);
}

.live-why-icon {
    width: 46px;
    height: 46px;
    background: rgba(57, 190, 255, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--main-color);
}

.live-why-card h3 {
    color: var(--white-color);
    font-size: 17px;
    font-weight: 700;
}

.live-why-card p {
    color: var(--description-color);
    font-size: 15px;
    line-height: 1.6;
}

/* Come-trovare section reuses #about layout — must redeclare since home.css scopes to #about */
#come-trovare {
    background: var(--stats-background);
}

#come-trovare .content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

#come-trovare .content .left {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 40px;
}

#come-trovare .content .left .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
}

#come-trovare .content .left .section-title::before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 150px;
    height: 1px;
    border-radius: 5px;
    background: var(--description-color);
}

#come-trovare .content .left .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 5px;
    background: var(--main-color);
}

#come-trovare .content .left .about-us {
    color: var(--description-color);
    font-size: 17px;
    max-width: 80%;
    line-height: 1.6;
}

#come-trovare .content .right {
    display: flex;
    justify-content: end;
    align-items: center;
    height: 100%;
    position: relative;
    width: 100%;
}

#come-trovare .content .right img {
    width: auto;
    max-height: 250px;
    position: relative;
    z-index: 1;
    right: 100px;
}

#come-trovare .content .right .img-background {
    position: absolute;
    width: 210px;
    height: calc(100% - 40px);
    border-radius: 40px 3px;
    background: var(--main-color);
    z-index: 0;
    bottom: 5px;
}

/* Inline links inside #come-trovare */
#come-trovare .about-us a,
#come-trovare .about-us a:link,
#come-trovare .about-us a:visited {
    color: var(--main-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(57, 190, 255, 0.35);
    transition: border-color 0.2s, opacity 0.2s;
}

#come-trovare .about-us a:hover {
    border-bottom-color: var(--main-color);
    opacity: 0.85;
}

/* Responsive */
@media screen and (max-width: 1551px) {
    #come-trovare .content .left .about-us {
        max-width: 90%;
    }
}

@media screen and (max-width: 1183px) {
    #come-trovare .content {
        flex-direction: column;
        gap: 40px;
    }
    #come-trovare .content .left .about-us {
        max-width: 100%;
    }
    #come-trovare .content .right img {
        margin: auto;
        right: 0;
    }
    #come-trovare .content .right .img-background {
        width: 100%;
    }
}

/* Hero */
#live-hero {
    background: url("../../images/header-background.webp") no-repeat fixed center;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 150px 80px;
}

.live-hero-inner {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.live-hero-text {
    display: flex;
    flex-direction: column;
    gap: 28px;
    flex: 1;
    min-width: 0;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(145, 70, 255, 0.15);
    border: 1px solid rgba(145, 70, 255, 0.5);
    padding: 8px 18px;
    border-radius: 50px;
    width: fit-content;
    color: #c084fc;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9146FF;
    display: inline-block;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.live-title {
    font-size: 58px;
    font-weight: 900;
    color: var(--white-color);
    line-height: 1.1;
}

.live-title span {
    color: #9146FF;
}

.live-subtitle {
    color: var(--description-color);
    font-size: 17px;
    line-height: 1.7;
    max-width: 520px;
}

.live-cta-group {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-live-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #9146FF;
    border: 2px solid #9146FF;
    color: var(--white-color);
    font-size: 16px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.2s;
}

.btn-live-primary:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.btn-live-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(145, 70, 255, 0.1);
    border: 2px solid rgba(145, 70, 255, 0.5);
    color: #c084fc;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.2s;
}

.btn-live-secondary:hover {
    background: rgba(145, 70, 255, 0.2);
    border-color: #9146FF;
    color: var(--white-color);
}

/* Twitch Card (static, no iframe) */
.live-embed-wrapper {
    flex: 1.1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.embed-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--description-color);
    font-size: 14px;
    font-weight: 600;
}

.live-twitch-card {
    background: rgba(145, 70, 255, 0.07);
    border: 1px solid rgba(145, 70, 255, 0.35);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.live-twitch-card-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 28px;
    flex-wrap: wrap;
}

.live-twitch-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #9146FF;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(145, 70, 255, 0.15);
}

.live-twitch-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.live-twitch-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.live-twitch-channel {
    color: #c084fc;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-twitch-desc {
    color: var(--description-color);
    font-size: 14px;
    line-height: 1.6;
}

.live-twitch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #9146FF;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.live-twitch-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.live-twitch-stats {
    display: flex;
    flex-direction: row;
    gap: 0;
    border-top: 1px solid rgba(145, 70, 255, 0.2);
}

.live-stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    color: var(--description-color);
    font-size: 13px;
    font-weight: 600;
    border-right: 1px solid rgba(145, 70, 255, 0.15);
}

.live-stat-item:last-child {
    border-right: none;
}

.live-stat-item i {
    color: #9146FF;
    font-size: 14px;
}

/* Live content section */
#live-content {
    background: var(--stats-background);
}

#live-content .content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.live-content-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.live-content-header .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
}

.live-content-header .section-title::before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 150px;
    height: 1px;
    border-radius: 5px;
    background: var(--description-color);
}

.live-content-header .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 5px;
    background: #9146FF;
}

.section-desc {
    color: var(--description-color);
    font-size: 17px;
    line-height: 1.6;
    margin-top: 16px;
}

.live-modes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.live-mode-card {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    background: rgba(210, 208, 208, 0.04);
    border: 1px solid rgba(210, 208, 208, 0.1);
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    transition: 0.2s;
}

.live-mode-card:hover {
    border-color: rgba(145, 70, 255, 0.4);
    background: rgba(145, 70, 255, 0.06);
    transform: translateY(-2px);
}

.live-mode-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(145, 70, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #c084fc;
}

.live-mode-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.live-mode-info h3 {
    color: var(--white-color);
    font-size: 18px;
    font-weight: 700;
}

.live-mode-info p {
    color: var(--description-color);
    font-size: 15px;
    line-height: 1.5;
}

.live-mode-tag {
    display: inline-block;
    background: rgba(145, 70, 255, 0.15);
    color: #c084fc;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 50px;
    width: fit-content;
}

/* Final CTA group */
.live-final-cta-group {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.join-telegram-secondary {
    background: rgba(57, 190, 255, 0.1) !important;
    border-color: rgba(57, 190, 255, 0.5) !important;
    color: var(--main-color) !important;
}

/* Responsive */
@media screen and (max-width: 1200px) {
    #live-hero {
        padding: 120px 90px 80px;
    }
    .live-hero-inner {
        flex-direction: column;
    }
    .live-title {
        font-size: 44px;
    }
}

@media screen and (max-width: 900px) {
    .live-modes-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 819px) {
    #live-hero {
        padding: 120px 30px 60px;
    }
    .live-title {
        font-size: 36px;
    }
    .live-cta-group {
        flex-direction: column;
    }
    .live-final-cta-group {
        flex-direction: column;
        align-items: center;
    }
    .live-twitch-card-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .live-twitch-btn {
        width: 100%;
        justify-content: center;
    }
}

