
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
    --cf-navy: #0f172a;
    --cf-cyan: #0ea5e9;
    --cf-cream: #f5f0e6;
    --cf-green: #22c55e;
    --cf-shadow: 0 18px 40px rgba(15,23,42,0.35);
}

.cfwc-wrapper {
    max-width: 1150px;
    margin: 3rem auto;
    padding: 2.8rem 2.6rem 2.6rem;
    background: var(--cf-cream);
    border-radius: 1.7rem;
    box-shadow: var(--cf-shadow);
    text-align: center;
}

/* Top date */
.cfwc-top-date {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 2.2rem;
    color: var(--cf-navy);
}

/* Grid for 4 clocks */
.cfwc-clock-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 2.8rem 3rem;
    justify-items: center;
}

@media (max-width: 900px) {
    .cfwc-clock-grid {
        grid-template-columns: 1fr;
    }
}

/* Screen blocks */
.cfwc-clock-screen {
    width: 470px;
    height: 190px;
    max-width: 100%;
    background: #000;
    border-radius: 1.2rem;
    box-shadow: 0 0 25px rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.8rem;
}

/* Time text - keep one line */
.cfwc-clock-time {
    font-family: "Share Tech Mono", monospace;
    font-size: 4.4rem;
    letter-spacing: 0.18rem;
    color: #5bff5b;
    text-shadow: 0 0 18px rgba(0,255,0,0.85);
    white-space: nowrap;
}

/* Labels */
.cfwc-clock-label {
    margin-top: 1rem;
}

.cfwc-clock-city {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cf-navy);
}

.cfwc-clock-zone {
    font-size: 1.05rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
}

/* GMT bar */
.cfwc-gmt-bar {
    margin-top: 3.1rem;
    padding: 1.3rem 2.4rem;
    font-size: 1.3rem;
    background: #000;
    color: #5bff5b;
    border-radius: 1.1rem;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(0,255,0,0.25);
}

.cfwc-gmt-time {
    font-family: "Share Tech Mono", monospace;
    font-size: 1.9rem;
    letter-spacing: 0.2rem;
}

.cfwc-gmt-date {
    font-size: 1.35rem;
    color: #a3ffb8;
}

/* NTP source line */
.cfwc-ntp-source {
    margin-top: 0.85rem;
    font-size: 0.9rem;
    color: #4b5563;
    opacity: 0.9;
}

/* Footer note */
.cfwc-footer-note {
    margin-top: 2.1rem;
    font-size: 0.95rem;
    color: #444;
}

/* ======= Mobile tweaks ======= */

@media (max-width: 600px) {
    .cfwc-wrapper {
        padding: 2rem 1.2rem 2.2rem;
    }

    .cfwc-top-date {
        font-size: 1.6rem;
    }

    .cfwc-clock-screen {
        width: 100%;
        height: 160px;
        padding: 0 1rem;
    }

    .cfwc-clock-time {
        font-size: 3.2rem;
        letter-spacing: 0.12rem;
    }

    .cfwc-clock-city {
        font-size: 1.3rem;
    }
}

@media (max-width: 400px) {
    .cfwc-clock-screen {
        height: 145px;
        padding: 0 0.6rem;
    }

    .cfwc-clock-time {
        font-size: 2.7rem;
        letter-spacing: 0.08rem;
    }

    .cfwc-gmt-bar {
        padding: 1.1rem 1.4rem;
        font-size: 1.1rem;
    }

    .cfwc-gmt-time {
        font-size: 1.6rem;
        letter-spacing: 0.14rem;
    }

    .cfwc-gmt-date {
        font-size: 1.1rem;
    }
}
