/* MOCKUPS OVERRIDES & NEW COMPONENTS */

body {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    /* Adjust background gradient to be more subtle in light mode */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(251, 191, 36, 0.03) 0%, transparent 40%);
}

/* --- Dark Theme (Timeline) --- */
.dark-theme {
    --surface: #1a1512;
    --surface-dim: #140e0b;
    --surface-container-lowest: #100b08;
    --surface-container-low: #1c1511;
    --on-surface: #f9f9f9;
    --on-surface-variant: #e0d8d0;
    --tertiary: #fcf9f8;
    background-color: var(--surface);
    color: var(--on-surface);
    min-height: 100vh;
    margin: -24px -16px -100px -16px; /* Negate app padding to fill screen */
    padding: 24px 16px 100px 16px;
}

.dark-theme h1, .dark-theme h2, .dark-theme h3 {
    color: var(--on-surface);
}

.dark-theme .polaroid {
    background: #f5f3ef; /* Bone/Cream */
    color: #1a1512;
}

.dark-theme .polaroid-caption {
    color: #1a1512;
}

/* --- Top Header Standardization --- */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.app-header-left, .app-header-right {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-header-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.dark-theme .app-header-title {
    color: #fbbf24;
}

.dark-theme .app-header i {
    color: var(--on-surface);
}

/* --- Stories Bar (Timeline) --- */
.stories-container {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 24px;
    scrollbar-width: none;
}
.stories-container::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 64px;
}

.story-avatar-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, #cc9300 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-avatar-wrap.add-story {
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.dark-theme .story-avatar-wrap.add-story {
    border-color: rgba(255, 255, 255, 0.2);
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-dim);
    border: 2px solid var(--surface);
}

.dark-theme .story-avatar {
    border-color: var(--surface);
}

.story-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--surface);
    color: var(--on-surface);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 12px;
    border: 2px solid var(--surface);
    display: flex;
    align-items: center;
    gap: 2px;
}

.story-name {
    font-size: 12px;
    font-weight: 600;
}

/* --- Drop a Beer --- */
.recent-rounds-container {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 24px;
    scrollbar-width: none;
}

.recent-rounds-container::-webkit-scrollbar {
    display: none;
}

.drop-type-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--surface-container-lowest);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.drop-type-card.active {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid var(--primary);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

.drop-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-container);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: var(--on-surface-variant);
}

.drop-type-card.active .drop-icon-wrap {
    background: rgba(251, 191, 36, 0.2);
    color: var(--primary);
}

.drop-type-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: var(--on-surface);
}

.drop-type-info p {
    margin: 0;
    font-size: 12px;
    color: var(--on-surface-variant);
}

.drop-type-card.active .drop-type-info h4 {
    color: var(--tertiary);
}

/* --- User Profile --- */
.profile-header-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.profile-avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
}

.profile-avatar-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, #f59e0b 100%);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--surface);
}

.profile-badge-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-primary);
    border: 3px solid var(--surface);
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-bio {
    text-align: center;
    color: var(--on-surface-variant);
    margin-bottom: 16px;
    font-size: 14px;
    max-width: 280px;
}

.action-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.1);
    background: var(--surface-container-lowest);
    color: var(--on-surface-variant);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    flex: 1;
    background: var(--surface-container-lowest);
    border-radius: var(--radius-lg);
    padding: 16px 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.02);
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--tertiary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-section {
    margin-bottom: 32px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.progress-header .label {
    color: var(--on-surface-variant);
}

.progress-header .value {
    color: var(--tertiary);
}

.progress-track {
    height: 12px;
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, var(--primary) 100%);
    border-radius: 6px;
    /* Dotted overlay effect */
    background-image: radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px);
    background-size: 8px 8px;
    background-position: center;
}

.drops-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.grid-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* --- Leaderboard --- */
.podium-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    height: 240px;
    margin-bottom: 48px;
    margin-top: 48px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.podium-item.rank-1 {
    width: 100px;
}

.podium-avatar-wrap {
    position: relative;
    margin-bottom: -16px;
    z-index: 2;
}

.podium-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--surface);
}

.podium-item.rank-1 .podium-avatar {
    width: 80px;
    height: 80px;
}

.podium-rank-badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tertiary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid var(--surface);
}

.podium-glass {
    width: 100%;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 40px 40px 0 0;
    position: relative;
    overflow: hidden;
}

.podium-item.rank-2 .podium-glass { height: 140px; }
.podium-item.rank-1 .podium-glass { height: 180px; }
.podium-item.rank-3 .podium-glass { height: 110px; }

.podium-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #FFC733 0%, var(--primary) 100%);
    border-radius: 40px 40px 0 0;
}

.podium-item.rank-2 .podium-liquid { height: 100px; }
.podium-item.rank-1 .podium-liquid { height: 160px; }
.podium-item.rank-3 .podium-liquid { height: 70px; }

.podium-name {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--on-surface);
}

.podium-score {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.rank-list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--surface-container-lowest);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.rank-num {
    width: 24px;
    color: var(--on-surface-variant);
    font-weight: 600;
    font-size: 16px;
}

.rank-list-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    background: var(--surface-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--on-surface-variant);
}

.rank-list-info {
    flex: 1;
}

.rank-list-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

.rank-list-title {
    font-size: 12px;
    color: var(--on-surface-variant);
}

.rank-list-score {
    font-weight: 600;
    color: var(--secondary);
}

/* --- Stash --- */
.stash-card {
    padding: 24px;
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
    position: relative;
    background: var(--surface-container-lowest);
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.stash-card-yellow {
    background: linear-gradient(135deg, var(--surface-container-lowest) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.stash-card-grey {
    background: linear-gradient(135deg, var(--surface-container-lowest) 0%, rgba(0,0,0,0.02) 100%);
}

.stash-card-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.stash-card-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stash-card-yellow .stash-card-value {
    color: var(--primary);
}

.stash-card-grey .stash-card-value {
    color: var(--tertiary);
}

.stash-card-value span {
    font-size: 24px;
    color: var(--tertiary);
}

.stash-card-sub {
    font-size: 14px;
    color: var(--on-surface-variant);
}

.stash-icon-top-right {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stash-card-yellow .stash-icon-top-right {
    background: rgba(251, 191, 36, 0.1);
    color: var(--primary);
}

.stash-card-grey .stash-icon-top-right {
    background: rgba(0,0,0,0.05);
    color: var(--on-surface-variant);
}

.recent-drop-list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--surface-container-lowest);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
}

.recent-drop-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 16px;
}

.recent-drop-info {
    flex: 1;
}

.recent-drop-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

.recent-drop-time {
    font-size: 12px;
    color: var(--on-surface-variant);
}

.recent-drop-amount {
    font-size: 24px;
    font-weight: 700;
}

.amount-positive { color: var(--primary); }
.amount-negative { color: var(--on-surface-variant); }
