.weather-compass-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.weather-compass {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: #4a7ab5; /* Default blue matching user image */
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
    margin: 0 auto;
}

/* The inner circle */
.weather-compass::before {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    z-index: 1;
}

/* Ticks - Using repeating conic gradient */
.weather-compass-ticks {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    /* 72 ticks, every 5 degrees */
    background: repeating-conic-gradient(
        transparent 0deg,
        transparent 4deg,
        rgba(255,255,255,0.4) 4deg,
        rgba(255,255,255,0.4) 5deg
    );
    -webkit-mask-image: radial-gradient(transparent 65%, black 65%);
    mask-image: radial-gradient(transparent 65%, black 65%);
    pointer-events: none;
}

/* N E S W labels */
.weather-compass-label {
    position: absolute;
    font-weight: bold;
    font-size: 16px;
    z-index: 3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.weather-compass-label-n { top: 20px; left: 50%; transform: translateX(-50%); }
.weather-compass-label-e { right: 20px; top: 50%; transform: translateY(-50%); }
.weather-compass-label-s { bottom: 20px; left: 50%; transform: translateX(-50%); }
.weather-compass-label-w { left: 20px; top: 50%; transform: translateY(-50%); }

/* Arrow container rotates */
.weather-compass-arrow-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 1s ease-out;
}

/* The line passing through the center */
.weather-compass-arrow-line {
    position: absolute;
    width: 3px;
    height: 160px;
    background-color: #ffffff;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

/* The circle at the tail of the arrow */
.weather-compass-arrow-tail {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    border-radius: 50%;
    left: 50%;
    top: 38px; /* Near the N label */
    transform: translateX(-50%);
}

/* The point of the arrow */
.weather-compass-arrow-head {
    position: absolute;
    left: 50%;
    bottom: 38px; /* Near the S label */
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #ffffff; /* Pointing down */
}

/* Center text */
.weather-compass-center {
    position: absolute;
    z-index: 4;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.weather-compass-speed {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.weather-compass-speed-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.weather-compass-speed-unit {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 2px;
}

.weather-compass-bottom-info {
    text-align: center;
    margin-top: 15px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #333;
}

.weather-compass-temp {
    font-weight: 600;
}

.weather-compass-error {
    color: #d9534f;
    padding: 10px;
    border: 1px solid #d9534f;
    border-radius: 4px;
    background: #fdf7f7;
    text-align: center;
}
