/* ============================================
   PERHAM GBB - SMASHRUN-INSPIRED DESIGN
   Black, Gold, White Theme
   ============================================ */

/* Inter font loaded by shared header */

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

:root {
    /* Team Colors */
    --gold: #FFD700;
    --gold-bright: #FFED4E;
    --gold-dark: #D4AF37;
    --gold-muted: #B8941E;
    
    --black: #000000;
    --black-soft: #0A0A0A;
    --black-lighter: #1A1A1A;
    --black-surface: #141414;
    
    --white: #FFFFFF;
    --white-soft: #F5F5F5;
    
    /* Neutrals */
    --gray-100: #E5E5E5;
    --gray-200: #CCCCCC;
    --gray-300: #B3B3B3;
    --gray-400: #999999;
    --gray-500: #808080;
    --gray-600: #666666;
    --gray-700: #4D4D4D;
    --gray-800: #333333;
    --gray-900: #1A1A1A;
    
    /* Semantic colors */
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Body and nav styles are now handled by the shared styles.css */

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

/* ============================================
   STATS OVERVIEW
   ============================================ */

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--black-lighter);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.stat-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.stat-value.highlight {
    color: var(--gold);
}

.stat-subtitle {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-top: var(--space-xs);
}

/* ============================================
   QUICK LOG
   ============================================ */

.quick-log {
    background: linear-gradient(135deg, var(--black-lighter) 0%, var(--black-surface) 100%);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    position: relative;
}

.quick-log::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
}

.quick-log-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    margin-bottom: var(--space-lg);
}

.quick-log-form {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.quick-log-input {
    flex: 1;
    background: var(--black-soft);
    border: 2px solid var(--gray-800);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    text-align: center;
    transition: all 0.2s;
}

.quick-log-input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--black);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.quick-log-input::placeholder {
    color: var(--gray-600);
    font-weight: 500;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--gold-bright);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-800);
}

.btn-secondary:hover {
    background: var(--black-lighter);
    border-color: var(--gold);
    color: var(--gold);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

/* ============================================
   ACTIVITY FEED
   ============================================ */

.feed-container {
    background: var(--black-lighter);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.feed-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feed-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
}

.feed-item {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-800);
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    transition: background 0.2s;
}

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

.feed-item:hover {
    background: var(--black-surface);
}

.feed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    border: 2px solid var(--gray-800);
}

.feed-content {
    flex: 1;
    min-width: 0;
}

.feed-user {
    font-weight: 600;
    color: var(--white);
    font-size: 0.875rem;
}

.feed-text {
    color: var(--gray-300);
    font-size: 0.875rem;
    margin-top: 2px;
    line-height: 1.5;
}

.feed-text strong {
    color: var(--gold);
    font-weight: 600;
}

.feed-badges {
    display: inline-flex;
    gap: 4px;
    margin-left: 4px;
}

.feed-badge-icon {
    font-size: 1rem;
}

.feed-time {
    font-size: 0.75rem;
    color: var(--gray-500);
    flex-shrink: 0;
}

/* ============================================
   PROGRESS BARS
   ============================================ */

.progress-section {
    background: var(--black-lighter);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    position: relative;
}

.progress-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.progress-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
}

.progress-target {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.progress-bar-wrapper {
    background: var(--black-soft);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-lg);
    border: 1px solid var(--gray-800);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-bright) 100%);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.progress-stat {
    text-align: center;
}

.progress-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}

.progress-stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-xs);
}

/* ============================================
   DATA SECTIONS
   ============================================ */

.data-section {
    background: var(--black-lighter);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.section-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
}

.data-row {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.data-row:last-child {
    border-bottom: none;
}

.data-row:hover {
    background: var(--black-surface);
}

.data-label {
    font-size: 0.875rem;
    color: var(--gray-300);
}

.data-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold);
}

/* ============================================
   LEADERBOARD
   ============================================ */

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--gray-800);
    transition: background 0.2s;
}

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

.leaderboard-item:hover {
    background: var(--black-surface);
}

.leaderboard-rank {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-600);
    min-width: 30px;
    text-align: center;
}

.leaderboard-item:nth-child(1) .leaderboard-rank {
    color: var(--gold);
    font-size: 1.25rem;
}

.leaderboard-item:nth-child(2) .leaderboard-rank {
    color: var(--gray-300);
}

.leaderboard-item:nth-child(3) .leaderboard-rank {
    color: #CD7F32;
}

.leaderboard-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
    border: 2px solid var(--gray-800);
}

.leaderboard-info {
    flex: 1;
    min-width: 0;
}

.leaderboard-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
}

.leaderboard-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.leaderboard-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
}

/* ============================================
   BADGES
   ============================================ */

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-md);
    padding: var(--space-lg);
}

.badge-item {
    background: var(--black-surface);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.badge-item:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    background: rgba(255, 215, 0, 0.05);
}

.badge-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

.badge-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
}

.badge-time {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: var(--space-xs);
}

/* ============================================
   GRID LAYOUT
   ============================================ */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.text-gold { color: var(--gold); }
.font-bold { font-weight: 700; }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

/* ============================================
   MESSAGES
   ============================================ */

.message {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.message-success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.message-error {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error);
    border: 1px solid rgba(244, 67, 54, 0.2);
}
