/* Additional dashboard styles beyond base template */

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

.live-feed-item {
    animation: fadeIn 0.3s ease-out;
}

/* Leaderboard */
.leaderboard-item:hover {
    background: var(--bg-card-hover);
    margin: 0 -8px;
    padding: 8px;
    border-radius: 4px;
}

/* Weather cards */
.weather-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-2px);
    transition: all 0.2s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 24px;
    }
}

/* HTMX loading indicator */
.htmx-request .htmx-indicator {
    opacity: 1;
}

.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms ease-in;
}

/* GPS Location Button */
#gps-locate-btn {
    position: absolute;
    bottom: 70px;
    right: 14px;
    z-index: 1003;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

#gps-locate-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #1f2937;
}

#gps-locate-btn svg {
    flex-shrink: 0;
}

#gps-locate-btn svg {
    flex-shrink: 0;
}

#gps-locate-btn:hover {
    background: rgba(40, 40, 50, 0.95);
    color: #e5e7eb;
}

#gps-locate-btn.locating {
    color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.5);
    animation: gps-pulse 1s ease-in-out infinite;
}

@keyframes gps-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* APRSThursday Toggle Button */
#aprsthursday-fab {
    position: absolute;
    bottom: 24px;
    right: 10px;
    z-index: 1003;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.aprsthursday-toggle-off {
    background: rgba(30, 30, 40, 0.92);
    color: #9ca3af;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

.aprsthursday-toggle-off:hover {
    background: rgba(40, 40, 50, 0.95);
    color: #e5e7eb;
}

.aprsthursday-toggle-thursday {
    background: #1a1a2e;
    color: #fbbf24;
    border: 2px solid #d97706 !important;
    animation: aprsthursday-pulse 2.5s ease-in-out infinite;
}

.aprsthursday-toggle-thursday:hover {
    background: #2d2410;
    color: #fde68a;
}

.aprsthursday-toggle-on {
    background: rgba(217, 119, 6, 0.95);
    color: #fff;
    border: 1px solid rgba(217, 119, 6, 0.8) !important;
    box-shadow: 0 2px 12px rgba(217, 119, 6, 0.3);
}

.aprsthursday-toggle-on:hover {
    background: rgba(217, 119, 6, 1);
}

@keyframes aprsthursday-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
    50% { box-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 0 5px rgba(217, 119, 6, 0.25), 0 0 16px rgba(251, 191, 36, 0.2); }
}

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

/* Weather overlay toggle - styled inline in toolbar */

/* APRSThursday Bottom Sheet */
.aprsthursday-sheet {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 1002;
    background: rgba(20, 20, 30, 0.96);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px 16px 0 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
}

.aprsthursday-sheet.dragging {
    transition: none !important;
}

.aprsthursday-sheet.peek {
    transform: translateY(calc(100% - 80px));
}

.aprsthursday-sheet.peek {
    transform: translateY(calc(100% - 80px));
}

.aprsthursday-sheet.half {
    transform: translateY(60%);
}

.aprsthursday-sheet.full {
    transform: translateY(15%);
}

.aprsthursday-sheet.fullscreen {
    transform: translateY(0);
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    z-index: 2000;
}

.aprsthursday-sheet-handle {
    width: 40px; height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin: 8px auto;
    cursor: grab;
    touch-action: none;
}

.aprsthursday-sheet-header {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
    touch-action: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.aprsthursday-stat-pill {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 11px;
    color: #d1d5db;
    white-space: nowrap;
}

.aprsthursday-stat-pill strong {
    color: #22c55e;
}

.aprsthursday-log {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px 12px;
    contain: content;
}

.aprsthursday-log-entry {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
    color: #d1d5db;
}

.aprsthursday-log-entry.checkin {
    border-left: 3px solid #d97706;
    padding-left: 8px;
}

.aprsthursday-log-entry .timestamp {
    color: #6b7280;
    font-family: monospace;
    font-size: 11px;
    flex-shrink: 0;
}

.aprsthursday-log-entry .callsign {
    color: #60a5fa;
    cursor: pointer;
    font-weight: 500;
    flex-shrink: 0;
}

.aprsthursday-log-entry .callsign:hover {
    text-decoration: underline;
}

.aprsthursday-log-entry .type-badge {
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
    flex-shrink: 0;
}

.aprsthursday-log-entry .type-badge.chk {
    background: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
}

.aprsthursday-log-entry .type-badge.pos {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.aprsthursday-log-entry .message {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.aprsthursday-date-select {
    background: rgba(40,40,55,0.95);
    color: #e0e0e0;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    margin-left: auto;
}
