/* Drop-in replacement for style.css — Exodus wallet inspired */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #0b0f1a;
    --card-color: #141a2e;
    --card-gradient: linear-gradient(145deg, #161d35, #0f1426);
    --text-color: #e8ebf1;
    --muted-text: #9aa3b2;

    --accent-color: #7b5cff;      /* Exodus purple */
    --accent-secondary: #4da3ff;  /* Exodus blue */
    --highlight-color: #9f8bff;

    --submitted-word-color: #ffffff;
    --disabled-color: #2a2f45;
    --border-color: rgba(255,255,255,0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(1200px 600px at 20% -10%, rgba(123,92,255,0.15), transparent 60%),
        radial-gradient(1000px 500px at 90% 10%, rgba(77,163,255,0.12), transparent 55%),
        var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px 10px;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff; /* full white */
}

/* Home button styling */
.home-icon {
    width: 0.65em; /* Reduced from 0.7em for better alignment */
    height: 0.65em; /* Reduced from 0.7em for better alignment */
    position: relative;
    top: 0.15em; /* Adjusted to align with the letter 'I' */
    fill: var(--accent-secondary);
    transition: all 0.2s ease;
}

.home-icon:hover {
    fill: var(--highlight-color);
    transform: scale(1.05);
}

.intro-text {
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #ffffff; /* full white */
}

.word-fields {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.field-group {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    transition: all 0.2s ease-in-out;
}

.field-group:focus-within {
    border-color: rgba(77, 163, 255, 0.6); /* Changed to blue (accent-secondary) */
    box-shadow: 0 0 0 1px rgba(77, 163, 255, 0.6), 0 10px 30px rgba(77, 163, 255, 0.25); /* Blue glow */
    transform: translateY(-1px);
}

/* Make numbers white */
.field-label {
    width: 30px;
    margin-right: 10px;
    text-align: right;
    font-weight: 600;
    color: #ffffff; /* Changed from var(--accent-secondary) to white */
    opacity: 0.9;
}

.word-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 0.95rem;
}

.word-input::placeholder {
    color: #6f768f;
}

.word-input.submitted {
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(77, 163, 255, 0.25), rgba(77, 163, 255, 0.15)); /* More blue gradient */
    border-radius: 8px;
    padding-left: 6px;
    box-shadow: 0 0 8px rgba(77, 163, 255, 0.3); /* Added blue glow */
}

.buttons-container {
    grid-column: 4 / 5;
}

#finishButton {
    width: 100%;
    height: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--card-gradient);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

#finishButton:not(.disabled) {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    box-shadow: 0 12px 40px rgba(123,92,255,0.45);
}

#finishButton:not(.disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(123,92,255,0.6);
}

#finishButton.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .word-fields {
        grid-template-columns: repeat(2, 1fr);
    }
    .buttons-container {
        grid-column: 2 / 3;
    }
}

@media (max-width: 480px) {
    /* Header typography tuned for iPhone-sized screens */
    .title {
        font-size: 1.45rem; /* fits iPhone 15 width without wrapping */
        line-height: 1.2;
        white-space: nowrap; /* prevent line break */
    }

    .home-icon {
        width: 0.5em; /* Further reduced for mobile */
        height: 0.5em; /* Further reduced for mobile */
        top: 0.12em; /* Fine-tuned alignment for mobile */
    }

    .intro-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .word-fields {
        grid-template-columns: 1fr;
    }

    .buttons-container {
        grid-column: 1 / 2;
    }
}
/* Desktop only: place submit below field 32 */
@media (min-width: 769px) {
    .buttons-container {
        grid-column: 4 / 5;
        grid-row: 9;
    }
}