/* World Time Zone Map - Premium Styles */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --wtzm-primary: #00d4ff;
    --wtzm-secondary: #7c3aed;
    --wtzm-accent: #f59e0b;
    --wtzm-success: #10b981;
    --wtzm-warning: #f59e0b;
    --wtzm-danger: #ef4444;
    --wtzm-bg-dark: #0a0e27;
    --wtzm-bg-card: #131832;
    --wtzm-bg-hover: #1a2048;
    --wtzm-text: #e2e8f0;
    --wtzm-text-muted: #94a3b8;
    --wtzm-border: #2d3a6d;
    --wtzm-glow: rgba(0, 212, 255, 0.3);
    --wtzm-day: #fbbf24;
    --wtzm-night: #1e3a5f;
    --wtzm-twilight: #f97316;
    --wtzm-land: #1e293b;
    --wtzm-ocean: #0c1929;
    --wtzm-border-country: #334155;
}

/* Container */
.wtzm-container {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--wtzm-bg-dark) 0%, #0f172a 50%, #131832 100%);
    border-radius: 24px;
    overflow: hidden;
    margin: 20px auto;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px var(--wtzm-border),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.wtzm-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--wtzm-primary), transparent);
    opacity: 0.5;
}

/* Header */
.wtzm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    border-bottom: 1px solid var(--wtzm-border);
}

.wtzm-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wtzm-text);
    margin: 0;
    letter-spacing: -0.02em;
}

.wtzm-icon {
    font-size: 1.8rem;
    animation: wtzm-rotate 20s linear infinite;
}

@keyframes wtzm-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wtzm-current-utc {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--wtzm-bg-card);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--wtzm-border);
}

.wtzm-utc-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--wtzm-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.wtzm-utc-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--wtzm-text);
    text-shadow: 0 0 20px var(--wtzm-glow);
}

/* Map Wrapper */
.wtzm-map-wrapper {
    position: relative;
    background: var(--wtzm-ocean);
    overflow: hidden;
}

.wtzm-map-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.wtzm-map-container svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Loading */
.wtzm-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--wtzm-text-muted);
    font-size: 0.875rem;
}

.wtzm-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--wtzm-border);
    border-top-color: var(--wtzm-primary);
    border-radius: 50%;
    animation: wtzm-spin 1s linear infinite;
}

@keyframes wtzm-spin {
    to { transform: rotate(360deg); }
}

/* Map Countries */
.wtzm-country {
    fill: var(--wtzm-land);
    stroke: var(--wtzm-border-country);
    stroke-width: 0.5;
    cursor: pointer;
    transition: fill 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
}

.wtzm-country:hover {
    fill: #334155;
    stroke: var(--wtzm-primary);
    stroke-width: 1;
    filter: drop-shadow(0 0 8px var(--wtzm-glow));
}

.wtzm-country.wtzm-selected {
    fill: var(--wtzm-secondary);
    stroke: var(--wtzm-primary);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.5));
}

.wtzm-country.wtzm-day {
    fill: #2d4a3e;
}

.wtzm-country.wtzm-night {
    fill: #1a2744;
}

.wtzm-country.wtzm-twilight {
    fill: #3d3a2e;
}

/* Day/Night Overlay */
.wtzm-night-overlay {
    fill: url(#wtzm-night-gradient);
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: multiply;
}

.wtzm-terminator {
    fill: none;
    stroke: var(--wtzm-twilight);
    stroke-width: 2;
    stroke-dasharray: 8 4;
    opacity: 0.7;
}

/* Sun Position */
.wtzm-sun {
    fill: var(--wtzm-day);
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8));
}

/* Graticule */
.wtzm-graticule {
    fill: none;
    stroke: var(--wtzm-border);
    stroke-width: 0.3;
    stroke-dasharray: 2 2;
    opacity: 0.3;
}

/* Controls */
.wtzm-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.wtzm-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wtzm-bg-card);
    border: 1px solid var(--wtzm-border);
    border-radius: 12px;
    color: var(--wtzm-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wtzm-btn:hover {
    background: var(--wtzm-bg-hover);
    border-color: var(--wtzm-primary);
    color: var(--wtzm-primary);
    transform: scale(1.05);
}

.wtzm-btn[data-active="true"] {
    background: var(--wtzm-primary);
    border-color: var(--wtzm-primary);
    color: var(--wtzm-bg-dark);
}

.wtzm-btn svg {
    width: 20px;
    height: 20px;
}

/* Timezone Bar */
.wtzm-timezone-bar {
    display: flex;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--wtzm-bg-card);
    border-top: 1px solid var(--wtzm-border);
    overflow-x: auto;
    gap: 4px;
}

.wtzm-tz-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    min-width: 50px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wtzm-tz-indicator:hover {
    background: var(--wtzm-bg-hover);
}

.wtzm-tz-indicator.wtzm-tz-day {
    background: rgba(251, 191, 36, 0.1);
}

.wtzm-tz-indicator.wtzm-tz-night {
    background: rgba(30, 58, 95, 0.3);
}

.wtzm-tz-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--wtzm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wtzm-tz-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--wtzm-text);
    margin-top: 2px;
}

/* Info Panel */
.wtzm-info-panel {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 280px;
    background: var(--wtzm-bg-card);
    border: 1px solid var(--wtzm-border);
    border-radius: 16px;
    padding: 24px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.wtzm-info-panel.wtzm-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wtzm-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--wtzm-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.wtzm-close-btn:hover {
    background: var(--wtzm-bg-hover);
    color: var(--wtzm-text);
}

.wtzm-info-content {
    text-align: center;
}

.wtzm-country-flag {
    font-size: 3rem;
    margin-bottom: 8px;
    line-height: 1;
}

.wtzm-country-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wtzm-text);
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.wtzm-time-display {
    background: linear-gradient(135deg, var(--wtzm-bg-dark) 0%, var(--wtzm-bg-hover) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--wtzm-border);
}

.wtzm-time-main {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--wtzm-primary);
    text-shadow: 0 0 30px var(--wtzm-glow);
    letter-spacing: 0.02em;
}

.wtzm-date {
    font-size: 0.875rem;
    color: var(--wtzm-text-muted);
    margin-top: 4px;
}

.wtzm-details {
    text-align: left;
}

.wtzm-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--wtzm-border);
}

.wtzm-detail-row:last-child {
    border-bottom: none;
}

.wtzm-detail-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--wtzm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wtzm-detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wtzm-text);
}

.wtzm-detail-value.wtzm-is-day {
    color: var(--wtzm-day);
}

.wtzm-detail-value.wtzm-is-night {
    color: var(--wtzm-primary);
}

/* Legend */
.wtzm-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px;
    background: var(--wtzm-bg-dark);
    border-top: 1px solid var(--wtzm-border);
}

.wtzm-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--wtzm-text-muted);
}

.wtzm-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--wtzm-border);
}

.wtzm-legend-day {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.wtzm-legend-night {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
}

.wtzm-legend-twilight {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* Featured Times */
.wtzm-featured-times {
    display: flex;
   
    gap: 12px;
    padding: 20px 24px;
   
}

.wtzm-featured-city {
    background: var(--wtzm-bg-dark);
    border: 1px solid var(--wtzm-border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wtzm-featured-city:hover {
    border-color: var(--wtzm-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.wtzm-featured-city.wtzm-city-day {
    border-left: 3px solid var(--wtzm-day);
}

.wtzm-featured-city.wtzm-city-night {
    border-left: 3px solid var(--wtzm-primary);
}

.wtzm-city-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--wtzm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.wtzm-city-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--wtzm-text);
}

.wtzm-city-date {
    font-size: 0.7rem;
    color: var(--wtzm-text-muted);
    margin-top: 2px;
}

.wtzm-city-icon {
    font-size: 1rem;
    margin-top: 4px;
}

/* Tooltip */
.wtzm-tooltip {
    position: absolute;
    padding: 12px 16px;
    background: var(--wtzm-bg-card);
    border: 1px solid var(--wtzm-border);
    border-radius: 10px;
    font-size: 0.875rem;
    color: var(--wtzm-text);
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.wtzm-tooltip.wtzm-visible {
    opacity: 1;
}

.wtzm-tooltip-flag {
    font-size: 1.25rem;
    margin-right: 8px;
}

.wtzm-tooltip-name {
    font-weight: 600;
}

.wtzm-tooltip-time {
    font-family: 'JetBrains Mono', monospace;
    color: var(--wtzm-primary);
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .wtzm-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px;
    }
    
    .wtzm-title {
        font-size: 1.25rem;
    }
    
    .wtzm-info-panel {
        width: calc(100% - 32px);
        left: 16px;
        right: 16px;
    }
    
    .wtzm-featured-times {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wtzm-legend {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .wtzm-timezone-bar {
        padding: 12px 16px;
    }
    
    .wtzm-tz-indicator {
        min-width: 40px;
        padding: 6px 8px;
    }
	/* Featured Times */
.wtzm-featured-times {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 20px 24px;
    background: var(--wtzm-bg-card);
    border-top: 1px solid var(--wtzm-border);
}
}

@media (max-width: 480px) {
    .wtzm-container {
        border-radius: 16px;
        margin: 10px;
    }
    
    .wtzm-featured-times {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 8px;
        padding: 12px;
    }
    
    .wtzm-featured-city {
        padding: 12px;
    }
    
    .wtzm-time-main {
        font-size: 2rem;
    }
}

/* Dark theme scrollbar */
.wtzm-container ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.wtzm-container ::-webkit-scrollbar-track {
    background: var(--wtzm-bg-dark);
}

.wtzm-container ::-webkit-scrollbar-thumb {
    background: var(--wtzm-border);
    border-radius: 4px;
}

.wtzm-container ::-webkit-scrollbar-thumb:hover {
    background: var(--wtzm-primary);
}

/* Animation classes */
.wtzm-fade-in {
    animation: wtzm-fadeIn 0.3s ease forwards;
}

@keyframes wtzm-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wtzm-pulse {
    animation: wtzm-pulse 2s ease-in-out infinite;
}

@keyframes wtzm-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}
