/*---
name: Ice White
id: icewhite
category: light
description: Clean white,modern theme
---*/

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

body.icewhite {
    /* Core colors */
    --page-bg: #f8fafc;
    --bg-color: #ffffff;
    --text-color: #000000;
    --text-secondary: #666666;
    --primary-color: #0066cc;
    --secondary-color: #d0d0d0;
    --accent-color: #009933;
    
    /* Component colors */
    --card-bg: #ffffff;
    --box-bg-color: #f5f5f5;
    --border-color: #d0d0d0;
    --box-border-color: #d0d0d0;
    
    /* Button colors */
    --button-bg: #f5f5f5;
    --button-text: #000000;
    --button-hover-bg: #e5e5e5;
    --button-hover-text: #000000;
    --button-active-bg: #d5d5d5;
    --button-border: #d0d0d0;
    
    /* Effects */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 600;
    --glow-color: none;
    --flash-color: #666666;
    --hover-overlay: rgba(0, 0, 0, 0.05);
    --active-overlay: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.2s;
    --transition-timing: ease;
}

/* Layout */
body.icewhite .main-layout {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

body.icewhite .card {
    max-width: var(--card-max-width);
    margin: 0 auto;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border: none;
    box-shadow: none;
}

/* Game Components */
body.icewhite .binary-grid {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

body.icewhite .value-box {
    width: 3rem;
    height: 2rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--box-bg-color);
    border-radius: 4px;
    margin-bottom: 0.8rem;
    box-shadow: none;
}

body.icewhite .bit-box {
    width: 3rem;
    height: 6rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-color);
    background-color: var(--box-bg-color);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: none;
    transition: all var(--transition-speed) var(--transition-timing);
}

body.icewhite .bit-box:hover {
    background-color: var(--hover-overlay);
}

body.icewhite .bit-box:active {
    background-color: var(--active-overlay);
}

/* Game Stats */
body.icewhite .game-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

body.icewhite .target-display,
body.icewhite .stat-box {
    background-color: var(--box-bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 1rem;
    border-radius: 0.25rem;
    text-align: center;
    box-shadow: none;
}

/* UI Elements */
body.icewhite .button {
    padding: 0.5rem 1rem;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: 1px solid var(--button-border);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-timing);
}

body.icewhite .button:hover {
    background-color: var(--button-hover-bg);
    color: var(--button-hover-text);
}

body.icewhite .button:active {
    background-color: var(--button-active-bg);
}

body.icewhite .message,
body.icewhite .current-value,
body.icewhite .controls {
    color: var(--text-color);
    text-align: center;
    margin: 1rem 0;
}

/* Theme Selector */
body.icewhite .theme-selector,
body.icewhite .exam-board-selector {
    position: relative;
    width: 200px;
    margin: 1rem auto;
}

body.icewhite .theme-dropdown-btn,
body.icewhite .exam-board-dropdown-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 0.5rem;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

body.icewhite .theme-dropdown-content,
body.icewhite .exam-board-dropdown-content {
    background: var(--card-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

body.icewhite .theme-option,
body.icewhite .exam-board-option {
    width: 100%;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Score Section */
body.icewhite .score-table {
    padding: 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 0.5rem;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.75rem;
    font-weight: var(--font-weight-normal);
}

body.icewhite .score-entry {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid var(--secondary-color);
    font-weight: var(--font-weight-normal);
}

body.icewhite .score-entry:last-child {
    border-bottom: none;
}

body.icewhite .score-entry span:last-child {
    font-style: italic;
    color: var(--text-secondary);
}

/* Typography */
body.icewhite .title {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: var(--font-weight-bold);
}

body.icewhite .category-label {
    color: var(--text-color);
    font-weight: var(--font-weight-medium);
}

body.icewhite .save-prompt {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 1rem;
}

/* Focus States */
body.icewhite .button:focus,
body.icewhite .bit-box:focus,
body.icewhite .theme-dropdown-btn:focus,
body.icewhite .exam-board-dropdown-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body.icewhite .main-layout {
        flex-direction: column;
    }
    
    body.icewhite .scores-section {
        position: static;
    }
    
    body.icewhite .theme-selector,
    body.icewhite .exam-board-selector {
        width: 100%;
    }
}

/* Apply Inter font globally to all elements within icewhite theme */
body.icewhite,
body.icewhite * {
    font-family: var(--font-family) !important;
}

/* Remove any potential text shadows */
body.icewhite * {
    text-shadow: none !important;
}

/* Remove CRT and other effects */
body.icewhite .card::before {
    display: none;
}

body.icewhite * {
    box-shadow: none !important;
}

/* Feed Section Theme Styles */
body.icewhite .feed-section {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

body.icewhite .feed-section h3 {
    color: var(--text-color);
}

body.icewhite .feed-item {
    color: var(--text-color);
    border-color: var(--border-color);
}

/* My Updates Section */
body.icewhite .my-updates {
    background-color: var(--box-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    color: var(--text-color);
}

/* Make right borders more subtle */
body.icewhite .scores-section,
body.icewhite .awards-section,
body.icewhite .games-section > div,
body.icewhite .my-high-scores,
body.icewhite .global-high-scores,
body.icewhite .verified-schools-league,
body.icewhite [class*="scores"],
body.icewhite [class*="league"],
body.icewhite .card {
    border-right-color: rgba(208, 208, 208, 0.5) !important; /* Using --border-color with opacity */
}

/* Score Section Headers and Content */
body.icewhite div.my-high-scores > h2,
body.icewhite div.global-high-scores > h2,
body.icewhite div.verified-schools-league > h2 {
    font-size: 0.75rem !important;
    font-weight: var(--font-weight-medium) !important;
    margin-bottom: 0.75rem;
}

/* Keep consistent sizing for all score content */
body.icewhite .score-table,
body.icewhite .score-entry,
body.icewhite .score-entry * {
    font-size: 0.75rem !important;
    font-weight: var(--font-weight-normal) !important;
}

/* School names specifically */
body.icewhite .verified-schools-league .score-entry > :first-child {
    font-size: 0.75rem !important;
    font-weight: var(--font-weight-normal) !important;
}

/* Scores */
body.icewhite .score-entry span[class*="score"] {
    color: var(--primary-color);
}

/* Navigation styles for Ice White theme */
body.icewhite .main-nav {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

body.icewhite .nav-item {
    color: var(--text-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem;
}

body.icewhite .nav-item:hover {
    color: var(--primary-color);
}

body.icewhite .auth-buttons {
    margin-left: auto;  /* Pushes auth buttons to the right */
}

body.icewhite .login-button {
    color: var(--text-color);
    background: transparent;
    border: 1px solid var(--border-color);
}

body.icewhite .register-button.primary {
    color: white;
    background-color: var(--primary-color);
}

/* Access link styling for Ice White theme */
body.icewhite .access-games-link {
    color: var(--primary-color);
}

/* Footer styling for Ice White theme */
body.icewhite .main-footer {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

/* Performance Indicators */
.circle-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 8rem;  /* Fixed width to keep score centered under circle */
}

.circle-and-indicator {
    display: flex;
    align-items: center;
}

.indicator-space {
    width: 3rem;
    text-align: center;
    margin-left: 1rem;
}

.performance-indicator {
    font-size: 1.25rem;
}

.assessment-score {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 1rem;
    width: 300px;
    margin-left: auto;
}

.score-grid {
    display: grid;
    grid-template-columns: 60px auto;
    gap: 1rem;
    min-width: 200px;
}

.grid-cell {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.grid-cell:first-child {
    justify-content: flex-end;
}

.score-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.score-circle.good {
    background-color: #4CAF50;
}

.score-text {
    color: #0066cc;
    text-align: right;
    width: 100%;
}

.feedback-text {
    font-size: 0.9rem;
    color: #666;
    text-align: left;
}

.score-text {
    color: #0066cc;
    width: 50px;
    text-align: right;
}

.view-btn {
    width: 120px;
    text-align: center;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.assessment-table {
    border-collapse: collapse;
}

.assessment-table td {
    padding: 0.25rem 0.5rem;
    text-align: center;
}

/* Summary Panel */
.summary-panel {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    text-align: center;
}

.summary-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.summary-cell:not(:first-child) {
    padding-top: 1.5rem;
}

.summary-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    color: white;
    background-color: #4CAF50;
    margin-bottom: 0.25rem;
}

.summary-number {
    font-size: 1.75rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    line-height: 1;
}

.summary-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1;
}