/* World Clock Globe - Style Sheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0a0a1a;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    padding: 1rem 2rem;
    background: linear-gradient(180deg, rgba(20, 20, 40, 0.9) 0%, transparent 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e0e0e0;
}

/* Main Content */
main {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#globe-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Center Crosshair */
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 50;
}

.crosshair-h, .crosshair-v {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
}

.crosshair-h {
    width: 60px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.crosshair-v {
    width: 2px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Information Card */
#info-card {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 220px;
    background: rgba(20, 20, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: all 0.3s ease;
}

#info-card.collapsed .card-body {
    display: none;
}

#info-card.collapsed {
    width: 160px;
    padding: 0.4rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.card-header span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64b5f6;
}

#toggle-card {
    background: none;
    border: none;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    padding: 0 0.3rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

#toggle-card:hover {
    color: #fff;
}

#info-card.collapsed #toggle-card {
    transform: rotate(-90deg);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.15rem 0;
    font-size: 0.75rem;
}

.info-row.combined {
    justify-content: space-around;
    gap: 0.5rem;
}

.info-row.combined span {
    color: #e0e0e0;
    font-weight: 500;
}

.info-row.coords {
    justify-content: flex-start;
    gap: 0.3rem;
}

.info-row .label {
    color: #888;
    font-size: 0.7rem;
}

.info-row span:last-child {
    color: #e0e0e0;
    font-weight: 500;
}

/* Footer / Controls */
footer {
    padding: 1rem 2rem;
    background: linear-gradient(0deg, rgba(20, 20, 40, 0.9) 0%, transparent 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#auto-rotate-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#auto-rotate-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

#auto-rotate-btn.active {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.6);
    color: #81c784;
}

.hint {
    color: #666;
    font-size: 0.85rem;
}

.network-warning {
    color: #ff9800;
    font-size: 0.75rem;
    margin-left: auto;
}

/* Speed Control */
.speed-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
    font-size: 0.85rem;
}

#rotate-speed {
    width: 80px;
    cursor: pointer;
}

#speed-value {
    min-width: 20px;
    color: #64b5f6;
    font-weight: 600;
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.2rem;
    }
    
    #info-card {
        width: 240px;
        top: 70px;
        right: 10px;
    }
    
    .controls {
        flex-direction: column;
        gap: 0.5rem;
    }
}
