:root {
    --whisky-amber: #D2691E;
    --whisky-gold: #FFBF00;
    --aged-bourbon: #8B4513;
    --dark-mahogany: #2C1810;
    --wheat-text: #F5DEB3;
}

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

body {
    background: var(--dark-mahogany);
    color: var(--wheat-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container card style */
.container {
    max-width: 500px;
    width: 100%;
    background: linear-gradient(135deg, rgba(210, 105, 30, 0.1), rgba(139, 69, 19, 0.05));
    border: 1px solid var(--whisky-amber);
    border-radius: 8px;
    padding: 2rem;
}

.container.wide {
    max-width: 1200px;
}

/* Typography */
h1 {
    color: var(--whisky-gold);
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 0.5rem;
    text-align: center;
}

h2 {
    color: var(--whisky-gold);
    font-size: clamp(1.2rem, 4vw, 1.5rem);
}

.tagline, .subtitle {
    color: var(--whisky-amber);
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Form elements */
.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--wheat-text);
}

input[type="text"], textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--whisky-amber);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--wheat-text);
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: var(--whisky-gold);
    box-shadow: 0 0 10px rgba(255, 191, 0, 0.2);
}

input[type="text"]::placeholder, textarea::placeholder {
    color: #8B7653;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: var(--whisky-gold);
    color: var(--dark-mahogany);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 191, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--wheat-text);
    border: 1px solid var(--whisky-amber);
}

.btn-secondary:hover {
    border-color: var(--whisky-gold);
    box-shadow: 0 5px 15px rgba(255, 191, 0, 0.15);
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

/* Status messages */
.status {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: var(--whisky-gold);
    min-height: 20px;
}

.status.error {
    color: #ff6b6b;
}

/* Instructions box */
.instructions {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #8B7653;
    border: 1px solid rgba(210, 105, 30, 0.3);
}

.instructions strong {
    color: var(--wheat-text);
}

.instructions ol, .instructions ul {
    margin-left: 20px;
    margin-top: 10px;
}

.instructions li {
    margin-bottom: 6px;
}

.instructions code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    color: var(--whisky-gold);
}

/* Cards (for index page grid) */
.pool-card, .tool-card {
    background: linear-gradient(135deg, rgba(210, 105, 30, 0.1), rgba(139, 69, 19, 0.05));
    border: 1px solid var(--whisky-amber);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--wheat-text);
    display: flex;
    flex-direction: column;
}

.pool-card:hover:not(.coming-soon), .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 191, 0, 0.2);
    border-color: var(--whisky-gold);
}

.pool-card {
    min-height: 200px;
}

.tool-card {
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.pool-name, .tool-name {
    color: var(--whisky-gold);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.pool-name {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
}

.tool-name {
    font-size: 1.2rem;
}

.pool-algo {
    font-size: 0.9rem;
    margin-bottom: auto;
    padding-bottom: 1rem;
}

.tool-desc {
    font-size: 0.85rem;
    color: #8B7653;
}

.pool-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(210, 105, 30, 0.3);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    color: var(--whisky-gold);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: bold;
}

.stat-label {
    color: #8B7653;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.coming-soon {
    opacity: 0.5;
    pointer-events: none;
}

/* Section titles */
.section-title {
    color: var(--whisky-amber);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Grids */
.pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    body {
        padding: 15px;
        justify-content: flex-start;
        padding-top: 40px;
    }
    
    .container {
        padding: 1.25rem;
    }
    
    .pools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pool-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .stat-label {
        font-size: 0.65rem;
    }
    
    .pool-stats {
        gap: 0.5rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
}

