:root {
    /* Colors */
    --color-bg: #FFF8F0;
    /* Off-white background */
    --color-text: #1a1a1a;
    --color-primary: #FF0099;
    /* Hot Pink */
    --color-secondary: #00F0FF;
    /* Electric Blue */
    --color-accent: #CCFF00;
    /* Lime Green */
    --color-border: #000000;

    /* Typography */
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Borders & Shadows */
    --border-width: 3px;
    --border-radius: 12px;
    --shadow-hard: 4px 4px 0px var(--color-border);
    --shadow-hover: 2px 2px 0px var(--color-border);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-xl);
    border-bottom: var(--border-width) solid var(--color-border);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: 2px 2px 0px var(--color-border);
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.hero p {
    font-size: 1.5rem;
    color: #555;
}

/* Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.tool-card {
    background: white;
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-hard);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--color-border);
}

/* Footer */
.site-footer {
    margin-top: auto;
    text-align: center;
    padding: var(--spacing-lg) 0;
    border-top: var(--border-width) solid var(--color-border);
    font-family: var(--font-heading);
}

/* Buttons */
button {
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm) var(--spacing-md);
    transition: transform 0.1s, box-shadow 0.1s;
    box-shadow: var(--shadow-hard);
}

button:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: translate(2px, 2px);
}

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

.btn-action {
    background-color: var(--color-accent);
    color: var(--color-text);
    font-size: 1.5rem;
    padding: var(--spacing-md) var(--spacing-lg);
    width: 100%;
    margin-top: var(--spacing-md);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text);
}

/* Nav Link */
.nav-link {
    color: var(--color-text);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    border-bottom-color: var(--color-primary);
}

/* Decision Maker Tool */
.tool-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.input-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

#option-input {
    flex: 1;
    padding: var(--spacing-sm);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
}

.options-list {
    list-style: none;
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.options-list li {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: popIn 0.3s ease-out;
}

.delete-btn {
    background: #ff4d4d;
    color: white;
    padding: 2px 8px;
    font-size: 0.8rem;
    margin-left: var(--spacing-sm);
}

.result-display {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--color-secondary);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hard);
    animation: slideUp 0.5s ease-out;
}

.result-display.hidden {
    display: none;
}

#winner-text {
    font-size: 2rem;
    font-weight: 800;
    margin: var(--spacing-md) 0;
    color: var(--color-primary);
    text-transform: uppercase;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Measurement Converter */
.converters-stack {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.converter-card {
    background: white;
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-hard);
    transition: transform 0.2s;
}

.converter-card:hover {
    transform: translateY(-2px);
}

.converter-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.conversion-row {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

@media (min-width: 600px) {
    .conversion-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.input-wrapper label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary);
    text-transform: uppercase;
}

.input-wrapper input {
    padding: var(--spacing-sm);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    /* Changed to Fredoka */
    font-size: 1.5rem;
    /* Larger */
    width: 100%;
    font-weight: 600;
}

.input-wrapper select {
    margin-top: 0.5rem;
    width: 100%;
    font-family: var(--font-heading);
    /* Changed to Fredoka */
    font-size: 1.2rem;
    /* Larger */
    padding: 0.5rem;
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: var(--color-bg);
    cursor: pointer;
}

.arrow-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.arrow {
    font-size: 2rem;
    color: var(--color-text);
}

/* Quote Tool */
.quote-box {
    background: white;
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-hard);
    margin-top: var(--spacing-lg);
}

.quote-text {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}