/* ============================================================
   Viber Community Component
   Floating CTA button (all pages) + homepage community section.
   Viber brand color: #7360f2
   ============================================================ */

/* ── Floating Viber Button ───────────────────────────────── */
.viber-float-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #7360f2;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Dark drop-shadow ensures contrast on ANY background color */
    box-shadow: 0 4px 18px rgba(115, 96, 242, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: viber-pulse 2.8s ease-in-out infinite;
}

.viber-float-btn:hover,
.viber-float-btn:focus {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(115, 96, 242, 0.70), 0 3px 10px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    outline: none;
}

.viber-float-btn i {
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
}

/* Tooltip label */
.viber-float-btn::after {
    content: 'Κοινότητα Viber';
    position: absolute;
    left: 66px;
    top: 50%;
    transform: translateY(-50%);
    background: #120F2D;
    color: #fff;
    font-size: 0.75rem;
    font-family: 'Open Sans', sans-serif;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.viber-float-btn:hover::after {
    opacity: 1;
}

@keyframes viber-pulse {

    0%,
    100% {
        box-shadow: 0 4px 18px rgba(115, 96, 242, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
    }

    50% {
        box-shadow: 0 4px 28px rgba(115, 96, 242, 0.85), 0 0 0 7px rgba(255, 255, 255, 0.30), 0 2px 10px rgba(0, 0, 0, 0.40);
    }
}

/* ── Homepage Community Section ──────────────────────────── */
.viber-community-section {
    background: linear-gradient(135deg, #5a4bcc 0%, #7360f2 50%, #8e7df5 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

/* Decorative soft circles */
.viber-community-section::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    top: -120px;
    right: -100px;
    pointer-events: none;
}

.viber-community-section::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -80px;
    left: 60px;
    pointer-events: none;
}

/* ── Full section layout (desktop & tablet) ────────────── */
.viber-full-inner {
    display: block;
    /* shown on desktop/tablet */
}

/* "Νέο!" FAB — absolutely positioned on the section, top-left corner */
.viber-new-badge--full {
    position: absolute;
    top: 22px;
    left: 28px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFD600;
    color: #120F2D;
    font-family: 'Jost', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    animation: viber-new-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* star icon via pseudo-element */
.viber-new-badge--full::before {
    content: '★';
    font-size: 0.9rem;
}

@keyframes viber-new-pop {
    from {
        transform: scale(0.6);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── Compact inner row (mobile only) ────────────────── */
.viber-compact-inner {
    display: none;
    /* hidden on desktop/tablet, shown on mobile via MQ */
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
}

/* "Νέο!" badge */
.viber-new-badge {
    background: #FFD600;
    color: #120F2D;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Viber icon inline */
.viber-compact-icon {
    font-size: 2rem;
    color: #fff;
    flex-shrink: 0;
    line-height: 1;
    opacity: 0.95;
}

/* Descriptive text */
.viber-compact-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.975rem;
    line-height: 1.4;
    text-align: center;
}

.viber-compact-text strong {
    color: #fff;
}

.viber-community-icon-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.08);
}

.viber-community-icon-wrap i {
    font-size: 2.8rem;
    color: #fff;
    line-height: 1;
}

.viber-community-title {
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 12px;
    line-height: 1.25;
}

.viber-community-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    margin-bottom: 18px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.viber-community-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.viber-badge {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: #fff;
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.viber-badge i {
    margin-right: 6px;
}

.btn-viber-join {
    background: #fff;
    color: #7360f2;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 9px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-viber-join:hover,
.btn-viber-join:focus {
    background: #120F2D;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    outline: none;
}

.btn-viber-join i {
    font-size: 1.25rem;
}

/* ── Contact Page Viber Card ─────────────────────────────── */
.viber-contact-card {
    background: linear-gradient(135deg, #7360f2 0%, #8e7df5 100%);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
}

.viber-contact-card .viber-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.viber-contact-card .viber-card-icon i {
    font-size: 2rem;
    color: #fff;
}

.viber-contact-card h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}

.viber-contact-card p {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.btn-viber-contact {
    background: #fff;
    color: #7360f2;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
    font-size: 1rem;
}

.btn-viber-contact:hover {
    background: #120F2D;
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Tablet and below (992px) */
@media (max-width: 992px) {
    .viber-community-title {
        font-size: 1.7rem;
    }
}

/* Mobile (768px and below): switch to compact strip */
@media (max-width: 768px) {
    .viber-community-section {
        padding: 14px 0;
    }

    /* swap visibility */
    .viber-full-inner {
        display: none;
    }

    .viber-compact-inner {
        display: flex;
        gap: 8px 14px;
    }

    /* compact circle decorations */
    .viber-community-section::before {
        width: 180px;
        height: 180px;
        top: -70px;
        right: -50px;
    }

    .viber-community-section::after {
        width: 110px;
        height: 110px;
        bottom: -50px;
        left: 20px;
    }

    .viber-compact-text {
        font-size: 0.875rem;
        flex-basis: 100%;
        /* text takes its own line on small screens */
        order: 3;
    }

    /* Pin badge to the top-left corner of the section */
    .viber-new-badge {
        position: absolute;
        left: 12px;
        top: 0px;
        transform: none;
        order: unset;
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .viber-compact-icon {
        order: 1;
        font-size: 1.6rem;
    }

    .btn-viber-join {
        order: 4;
        font-size: 0.9rem;
        padding: 8px 20px;
    }

    .viber-float-btn {
        width: 52px;
        height: 52px;
        bottom: 18px;
        left: 18px;
    }

    .viber-float-btn i {
        font-size: 1.4rem;
    }

    /* Hide tooltip on mobile (no hover intent) */
    .viber-float-btn::after {
        display: none;
    }
}