
/* =========================================================
   GLOBALTIME.IO
   UNIVERSAL MULTI-TIMEZONE CLOCK GRID
   File: assets/css/shared/timezone-clocks.css

   Desktop: 2 columns
   Mobile: 1 column
   Single-clock pages: unchanged unless wrapped in this grid
========================================================= */


/* =========================================================
   1. GRID CONTAINER
========================================================= */

.timezone-clock-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;

    width: 100%;
    max-width: 1000px;
    margin: 24px auto;

    align-items: stretch;
}


/* =========================================================
   2. INDIVIDUAL CLOCK CARD
========================================================= */

.timezone-clock-grid > .country-big-clock {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;
    min-width: 0;
    box-sizing: border-box;

    margin: 0;
    padding: 28px 18px;

    text-align: center;

    background: #f5f8fd;
    border: 1px solid #e0e7f1;
    border-radius: 18px;

    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   3. CLOCK HEADING
========================================================= */

.timezone-clock-grid .clock-heading {
    margin: 0 0 14px;
    padding: 0;

    font-size: 1.15rem;
    font-weight: 650;
    line-height: 1.4;

    text-align: center;
}


/* =========================================================
   4. DIGITAL TIME
========================================================= */

.timezone-clock-grid .country-time-value {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 750;
    line-height: 1.25;

    text-align: center;
    font-variant-numeric: tabular-nums;

    overflow-wrap: anywhere;
    word-break: normal;
}


/* =========================================================
   5. TIMEZONE LABEL
========================================================= */

.timezone-clock-grid .country-time-label {
    max-width: 100%;

    margin-top: 12px;
    padding: 0;

    font-size: 0.9rem;
    line-height: 1.5;

    text-align: center;
    overflow-wrap: anywhere;
}


/* =========================================================
   6. OPTIONAL HOVER EFFECT
========================================================= */

@media (hover: hover) {
    .timezone-clock-grid > .country-big-clock:hover {
        border-color: #c5d5eb;
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    }
}


/* =========================================================
   7. DARK MODE
========================================================= */

body.dark-mode .timezone-clock-grid > .country-big-clock {
    background: #111c30;
    border-color: #334155;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

body.dark-mode .timezone-clock-grid .clock-heading,
body.dark-mode .timezone-clock-grid .country-time-value,
body.dark-mode .timezone-clock-grid .country-time-label {
    color: inherit;
}


/* =========================================================
   8. TABLET AND MOBILE
========================================================= */

@media (max-width: 700px) {
    .timezone-clock-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;

        margin: 20px auto;
    }

    .timezone-clock-grid > .country-big-clock {
        padding: 24px 16px;
        border-radius: 14px;
    }

    .timezone-clock-grid .country-time-value {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .timezone-clock-grid .clock-heading {
        font-size: 1.05rem;
    }
}


/* =========================================================
   9. REDUCED MOTION ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .timezone-clock-grid > .country-big-clock {
        transition: none;
    }
}