/* ==========================================================================
   WFX Real-Time — Panel + Hero Styling
   Version: 1.4.0 — Hero 3 separate blocks με δικό τους bg + border
   ========================================================================== */

/* ==========================================================================
   CONTAINER
   ========================================================================== */
.wfx-rt-container {
    display: block;
    width: calc(100% - 30px) !important;
    max-width: calc(100% - 30px) !important;
    margin: 0 30px 16px 0 !important;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (max-width: 900px) {
    .wfx-rt-container {
        width: calc(100% - 12px) !important;
        max-width: calc(100% - 12px) !important;
        margin: 0 12px 12px 0 !important;
    }
}
@media (max-width: 480px) {
    .wfx-rt-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 12px 0 !important;
    }
}

/* ==========================================================================
   HERO — Outer wrapper
   ========================================================================== */
.wfx-rt-hero {
    position: relative;
    display: block;
    margin: 0 0 16px;
    /* ★ Δεν έχει δικό του background — τα blocks έχουν */
}

/* Hero top — 3 blocks με gap μεταξύ τους */
.wfx-rt-hero-top {
    display: flex;
    align-items: stretch;              /* ★ Ίδιο ύψος σε όλα */
    justify-content: space-between;
    gap: 16px;                          /* ★ Gap μεταξύ των blocks */
    text-align: left;
}

/* ==========================================================================
   HERO BLOCKS — Κοινό styling
   ========================================================================== */
.wfx-rt-hero-block {
    position: relative;
    display: flex;
    background: radial-gradient(ellipse at top, #1F4068 0%, #162447 45%, #0B1739 100%);
    border-radius: 10px;
    overflow: hidden;
}

/* Gradient border (ίδιο και στα 3 blocks) */
.wfx-rt-hero-block::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        #FCD34D 0%,
        #22D3EE 40%,
        #67E8F9 60%,
        #FCD34D 100%);
    opacity: 0.55;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

/* ==========================================================================
   HERO BLOCK 1: LOGO
   ========================================================================== */
.wfx-rt-hero-block-logo {
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    min-width: 100px;
}

.wfx-rt-hero-logo {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

/* ==========================================================================
   HERO BLOCK 2: TEXT
   ========================================================================== */
.wfx-rt-hero-block-text {
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;              /* ★ NEW: κεντράρισμα κάθετα */
    text-align: center;               /* ★ NEW: κεντράρισμα οριζόντια */
    padding: 18px 26px;
}

.wfx-rt-hero-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin: 0 0 8px !important;
    letter-spacing: -0.2px !important;
    background: linear-gradient(180deg, #ffffff 0%, #d4dae4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff !important;
    text-align: center;               /* ★ NEW */
    width: 100%;                      /* ★ NEW: για σωστό centering */
}

.wfx-rt-hero-desc {
    color: #b9c2d0 !important;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    text-align: center;               /* ★ NEW */
    width: 100%;                      /* ★ NEW: για σωστό centering */
}

/* ==========================================================================
   HERO BLOCK 3: PREDICTIONS BOX
   ========================================================================== */
.wfx-rt-hero-block-box {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 22px;
    min-width: 120px;
    text-align: center;
}

.wfx-rt-hero-box-number {
    font-size: 28px;
    font-weight: 900;
    color: #FCD34D;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 12px rgba(252, 211, 77, 0.5);
    letter-spacing: -0.5px;
}

.wfx-rt-hero-box-label {
    margin-top: 6px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.15;
}

/* ==========================================================================
   PANEL
   ========================================================================== */
.wfx-rt-panel {
    position: relative;
    display: block;
    background: radial-gradient(ellipse at top, #1F4068 0%, #162447 45%, #0B1739 100%);
    border-radius: 10px;
    padding: 16px 18px 14px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.74);
}

.wfx-rt-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #FCD34D 0%, #22D3EE 50%, #FCD34D 100%);
    opacity: 0.55;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.wfx-rt-panel::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0) 20%,
        #FCD34D 50%,
        rgba(255,255,255,0) 80%,
        transparent 100%);
    background-size: 200% 100%;
    animation: wfxRtPanelShimmer 5s linear infinite;
    opacity: 0.75;
    pointer-events: none;
}

@keyframes wfxRtPanelShimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

/* ==========================================================================
   PANEL HEADER
   ========================================================================== */
.wfx-rt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(252, 211, 77, 0.18);
    position: relative;
}

.wfx-rt-header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 42px; height: 2px;
    background: linear-gradient(90deg, #FCD34D 0%, transparent 100%);
    border-radius: 2px;
}

.wfx-rt-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FCD34D;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.wfx-rt-title i {
    color: #22D3EE;
    font-size: 14px;
    filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.4));
}

.wfx-rt-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4ade80;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.wfx-rt-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
    animation: wfxRtPulse 1.8s ease-in-out infinite;
}

@keyframes wfxRtPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   STATS GRID
   ========================================================================== */
.wfx-rt-stats {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.wfx-rt-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    background: linear-gradient(180deg, rgba(0,0,0,0.34) 0%, rgba(0,0,0,0.24) 100%);
    border-radius: 6px;
    text-align: center;
    min-width: 0;
}

.wfx-rt-stat-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    line-height: 1.1;
}

.wfx-rt-stat-sublabel {
    font-size: 8.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.42);
    text-transform: lowercase;
    letter-spacing: 0.2px;
    opacity: 0.8;
}

.wfx-rt-stat-value {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    transition: color 0.3s ease;
}

.wfx-rt-stat-value.positive {
    color: #4ade80;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.wfx-rt-stat-value.negative {
    color: #f87171;
    text-shadow: 0 0 8px rgba(248, 113, 113, 0.3);
}

.wfx-rt-stat-value.wfx-rt-flash {
    animation: wfxRtFlash 800ms ease-out 1;
}

@keyframes wfxRtFlash {
    0%   { transform: scale(1.25); filter: brightness(1.6); }
    50%  { transform: scale(1.10); filter: brightness(1.3); }
    100% { transform: scale(1);    filter: brightness(1); }
}

/* ==========================================================================
   CHART
   ========================================================================== */
.wfx-rt-chart-wrap {
    margin: 10px 0 12px;
}

.wfx-rt-chart-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FCD34D;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.wfx-rt-chart-title i {
    color: #22D3EE;
    font-size: 12px;
}

.wfx-rt-chart-canvas {
    position: relative;
    min-height: 180px;
    height: 180px;
    width: 100%;
}

.wfx-rt-chart-canvas canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.wfx-rt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.wfx-rt-footer small {
    color: rgba(255, 255, 255, 0.55);
}

.wfx-rt-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(34, 211, 238, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.4);
    border-radius: 10px;
    color: #67E8F9;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   RESPONSIVE — Hero
   ========================================================================== */

/* Tablet: τα 3 blocks παραμένουν δίπλα-δίπλα αλλά πιο compact */
@media (max-width: 900px) {
    .wfx-rt-hero-top {
        gap: 12px;
    }
    .wfx-rt-hero-block-logo {
        padding: 14px 16px;
        min-width: 88px;
    }
    .wfx-rt-hero-logo {
        width: 56px;
        height: 56px;
    }
    .wfx-rt-hero-block-text {
        padding: 16px 20px;
    }
    .wfx-rt-hero-title {
        font-size: 17px !important;
    }
    .wfx-rt-hero-desc {
        font-size: 12.5px !important;
    }
    .wfx-rt-hero-block-box {
        padding: 14px 18px;
        min-width: 105px;
    }
    .wfx-rt-hero-box-number {
        font-size: 24px;
    }

    .wfx-rt-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Mobile: stacked κάθετα */
@media (max-width: 640px) {
    .wfx-rt-hero-top {
        flex-direction: column;
        gap: 12px;
    }
    .wfx-rt-hero-block-logo {
        padding: 14px;
        min-width: 0;
    }
    .wfx-rt-hero-logo {
        width: 56px;
        height: 56px;
    }
    .wfx-rt-hero-block-text {
        padding: 18px 20px;
        text-align: center;
    }
    .wfx-rt-hero-title {
        font-size: 16px !important;
    }
    .wfx-rt-hero-desc {
        font-size: 12.5px !important;
    }
    .wfx-rt-hero-block-box {
        padding: 14px 20px;
        min-width: 0;
    }
    .wfx-rt-hero-box-number {
        font-size: 24px;
    }

    .wfx-rt-panel {
        padding: 14px 12px 12px;
    }
    .wfx-rt-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .wfx-rt-stat {
        padding: 8px 4px;
    }
    .wfx-rt-stat-value {
        font-size: 14px;
    }
    .wfx-rt-stat-label {
        font-size: 9px;
    }
    .wfx-rt-stat-sublabel {
        font-size: 8px;
    }
    .wfx-rt-chart-canvas {
        min-height: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .wfx-rt-hero-block-logo {
        padding: 12px;
    }
    .wfx-rt-hero-logo {
        width: 52px;
        height: 52px;
    }
    .wfx-rt-hero-block-text {
        padding: 16px 16px;
    }
    .wfx-rt-hero-title {
        font-size: 14px !important;
    }
    .wfx-rt-hero-desc {
        font-size: 12px !important;
    }
    .wfx-rt-hero-block-box {
        padding: 12px 18px;
    }
    .wfx-rt-hero-box-number {
        font-size: 22px;
    }
    .wfx-rt-hero-box-label {
        font-size: 9px;
    }
}

@media (max-width: 360px) {
    .wfx-rt-hero-title {
        font-size: 13px !important;
    }
    .wfx-rt-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .wfx-rt-hero-logo {
        width: 46px;
        height: 46px;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .wfx-rt-panel::after,
    .wfx-rt-dot { animation: none !important; }
    .wfx-rt-stat { transition: none !important; }
    .wfx-rt-hero-block { transition: none !important; }
    .wfx-rt-hero-block:hover { transform: none !important; }
}