/**
 * Bali Clock - Styles
 */

/* Main container */
.bali-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px;
    margin: 10px auto;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Date display */
.bali-clock__date {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    text-align: center;
}

/* Clock face container */
.bali-clock__face {
    position: relative;
    width: 150px;
    height: 150px;
}

/* SVG styles */
.bali-clock__face svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Clock border */
.bali-clock__border {
    fill: #fff;
    stroke: #333;
    stroke-width: 2;
}

/* Hour markers */
.bali-clock__marker {
    stroke: #666;
    stroke-width: 1;
    stroke-linecap: round;
}

.bali-clock__marker--quarter {
    stroke: #333;
    stroke-width: 2;
}

/* Clock hands */
.bali-clock__hand {
    stroke-linecap: round;
    transform-origin: 75px 75px;
    transition: transform 0.05s cubic-bezier(0.4, 2.3, 0.6, 1);
}

.bali-clock__hand--hour {
    stroke: #222;
    stroke-width: 3;
}

.bali-clock__hand--minute {
    stroke: #444;
    stroke-width: 2;
}

.bali-clock__hand--second {
    stroke: #e74c3c;
    stroke-width: 1;
    transition: transform 0.02s ease-out;
}

/* Center dot */
.bali-clock__center {
    fill: #e74c3c;
    stroke: #333;
    stroke-width: 1;
}

/* Digital time display */
.bali-clock__digital {
    margin-top: 8px;
    padding: 4px 10px;
    background: #333;
    border-radius: 6px;
}

.bali-clock__digital span {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    color: #0f0;
    letter-spacing: 1px;
}

/* Analog-only mode */
.bali-clock--analog-only .bali-clock__date {
    margin-bottom: 0;
}

/* Digital-only mode */
.bali-clock--digital-only {
    width: auto;
    min-width: 160px;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.bali-clock--digital-only .bali-clock__date {
    margin-bottom: 8px;
}

.bali-clock--digital-only .bali-clock__digital {
    margin-top: 0;
    padding: 8px 16px;
}

.bali-clock--digital-only .bali-clock__digital span {
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 400px) {
    .bali-clock {
        width: 140px;
        padding: 8px;
    }

    .bali-clock--digital-only {
        width: auto;
        min-width: 140px;
        padding: 0;
    }

    .bali-clock__face {
        width: 125px;
        height: 125px;
    }

    .bali-clock__face svg {
        width: 125px;
        height: 125px;
    }

    .bali-clock__date {
        font-size: 9px;
    }

    .bali-clock__digital span {
        font-size: 10px;
    }

    .bali-clock--digital-only .bali-clock__digital span {
        font-size: 14px;
    }
}
