/* sarampass.com - Celestial Wayfinding Dashboard */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Font: Inter */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a2e;
    color: #f5f0e8;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Constellation Background */
#constellation-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* Dashboard Layout */
.dashboard {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 2rem;
    border-bottom: 1px solid rgba(232, 184, 75, 0.15);
    margin-bottom: 2rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: #f5f0e8;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #f5f0e8;
}

.nav-link.active {
    color: #e8b84b;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8b84b;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    flex: 1;
}

.panel-profile {
    grid-row: 1 / 3;
}

.panel-greeting {
    grid-column: 2 / 4;
}

.panel-wayfinding {
    grid-column: 2;
}

.panel-activities {
    grid-column: 3;
}

.panel-constellation {
    grid-column: 1 / 3;
}

.panel-actions {
    grid-column: 3;
}

/* Panel Base */
.panel {
    background: rgba(245, 240, 232, 0.03);
    border: 1px solid rgba(245, 240, 232, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.panel:hover {
    border-color: rgba(232, 184, 75, 0.15);
}

.panel-inner {
    padding: 1.75rem;
    height: 100%;
}

.panel-title {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6c757d;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Profile Panel */
.panel-profile .panel-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 2.5rem;
}

.profile-photo-wrap {
    position: relative;
    margin-bottom: 1.5rem;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
}

.vintage-photo {
    filter: sepia(0.3) saturate(0.8) brightness(0.95);
}

.star-badge {
    position: absolute;
    bottom: 0;
    right: -4px;
    background: #1a1a2e;
    border-radius: 50%;
    padding: 4px;
    border: 2px solid rgba(232, 184, 75, 0.3);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f5f0e8;
    margin-bottom: 0.25rem;
}

.profile-title {
    font-size: 0.8rem;
    color: #e8b84b;
    font-weight: 400;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
}

.profile-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(245, 240, 232, 0.06);
    width: 100%;
    justify-content: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a90d9;
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* Greeting Panel */
.greeting-time {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.greeting-text {
    font-size: 1.75rem;
    font-weight: 300;
    color: #f5f0e8;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.greeting-sub {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.greeting-weather {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(232, 184, 75, 0.06);
    border-radius: 8px;
    display: inline-flex;
}

.weather-text {
    font-size: 0.85rem;
    color: #e8b84b;
}

/* Wayfinding Panel */
.waypoints {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.waypoint {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(245, 240, 232, 0.04);
    transition: background 0.2s ease;
    cursor: pointer;
}

.waypoint:last-child {
    border-bottom: none;
}

.waypoint:hover {
    background: rgba(74, 144, 217, 0.05);
    margin: 0 -1.75rem;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

.waypoint-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a90d9;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(74, 144, 217, 0.4);
}

.waypoint:nth-child(2) .waypoint-dot {
    background: #e8b84b;
    box-shadow: 0 0 6px rgba(232, 184, 75, 0.4);
}

.waypoint:nth-child(4) .waypoint-dot {
    background: #6c757d;
    box-shadow: none;
}

.waypoint-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.waypoint-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #f5f0e8;
}

.waypoint-detail {
    font-size: 0.75rem;
    color: #6c757d;
}

.waypoint-bearing {
    font-size: 0.75rem;
    color: #4a90d9;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Activities Panel */
.activity-list {
    list-style: none;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(245, 240, 232, 0.04);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.gold {
    background: rgba(232, 184, 75, 0.1);
}

.activity-icon.blue {
    background: rgba(74, 144, 217, 0.1);
}

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.activity-text {
    font-size: 0.85rem;
    color: #f5f0e8;
    line-height: 1.4;
}

.activity-text strong {
    color: #e8b84b;
    font-weight: 500;
}

.activity-time {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Constellation Map Panel */
.constellation-map {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    aspect-ratio: 2/1;
    position: relative;
    overflow: hidden;
}

#constellation-svg {
    width: 100%;
    height: 100%;
}

.constellation-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.legend-item {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.visited {
    background: #e8b84b;
}

.legend-dot.planned {
    background: #4a90d9;
}

.legend-dot.current {
    background: #f5f0e8;
    box-shadow: 0 0 6px rgba(245, 240, 232, 0.6);
}

/* Quick Actions Panel */
.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    background: rgba(245, 240, 232, 0.03);
    border: 1px solid rgba(245, 240, 232, 0.06);
    border-radius: 10px;
    color: #f5f0e8;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.action-btn:hover {
    background: rgba(74, 144, 217, 0.08);
    border-color: rgba(74, 144, 217, 0.2);
    transform: translateY(-2px);
}

.action-btn span {
    color: #6c757d;
    transition: color 0.3s ease;
}

.action-btn:hover span {
    color: #f5f0e8;
}

/* Footer */
.dashboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(245, 240, 232, 0.04);
}

.footer-text {
    font-size: 0.75rem;
    color: #6c757d;
    letter-spacing: 0.05em;
}

/* Bounce Enter Animation */
.bounce-enter {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
}

.bounce-enter.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Kinetic Text Animation */
.kinetic-text {
    display: inline-block;
}

.kinetic-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.kinetic-text .char.visible {
    opacity: 1;
    transform: translateY(0);
}

.kinetic-text .char.space {
    width: 0.3em;
}

/* Twinkling star animation for background */
@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
    .panel-profile {
        grid-row: auto;
        grid-column: 1 / 3;
    }
    .panel-profile .panel-inner {
        flex-direction: row;
        gap: 2rem;
        text-align: left;
        padding-top: 1.75rem;
    }
    .profile-stats {
        border-top: none;
        padding-top: 0;
        justify-content: flex-start;
    }
    .panel-greeting {
        grid-column: 1 / 3;
    }
    .panel-wayfinding {
        grid-column: auto;
    }
    .panel-activities {
        grid-column: auto;
    }
    .panel-constellation {
        grid-column: 1 / 3;
    }
    .panel-actions {
        grid-column: 1 / 3;
    }
    .action-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .dashboard {
        padding: 1rem;
    }
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .nav-links {
        gap: 1rem;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .panel-profile {
        grid-column: auto;
    }
    .panel-profile .panel-inner {
        flex-direction: column;
        text-align: center;
    }
    .profile-stats {
        justify-content: center;
    }
    .panel-greeting {
        grid-column: auto;
    }
    .panel-constellation {
        grid-column: auto;
    }
    .panel-actions {
        grid-column: auto;
    }
    .action-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dashboard-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
