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

:root {
    --primary: #d4a71b;
    --primary-dark: #b8901f;
    --secondary: #f093fb;
    --text-dark: #e8e9eb;
    --text-light: #9ca3af;
    --bg-light: #1a2332;
    --border-light: #2d3748;
    --success: #10b981;
    --error: #ef4444;
    --navy: #0f1729;
    --gold: #d4af1b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--navy);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    margin-top: 20px;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
}

header h1 img {
    height: 4em;
    width: auto;
    margin-top: -1em;
    margin-right: -92px;
}

header .tagline {
    font-size: 1.3em;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1em;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Cards */
.card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--gold);
}

.card-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Decision List */
.decisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.decision-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    border: 1px solid var(--border-light);
}

.decision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.decision-card h3 {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 1.4em;
}

.decision-card .market-count {
    color: var(--text-light);
    font-size: 0.9em;
}

/* Market Display */
.markets-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.market-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
}

.market-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--gold);
}

.market-creator {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9em;
}

.market-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    max-height: 150px;
    overflow-y: auto;
}

.market-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.meta-item {
    flex: 1;
    min-width: 120px;
}

.meta-label {
    font-size: 0.75em;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--primary);
}

/* Answers */
.answers-container {
    margin-top: 15px;
}

.answer-item {
    padding: 12px 15px;
    background: #1f2937;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-light);
}

.answer-text {
    font-weight: 500;
    color: var(--text-dark);
}

/* Form inputs */
input[type="text"],
input[type="password"],
input[type="number"],
textarea {
    background: #1f2937 !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--border-light) !important;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
    color: var(--text-light) !important;
}

.answer-probability {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary);
}

/* Loading & Error States */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.error {
    background: #fee;
    color: var(--error);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--error);
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
    }
    
    .decisions-grid {
        grid-template-columns: 1fr;
    }
    
    nav {
        flex-direction: column;
        align-items: center;
    }
}
