/* Catppuccin Mocha Palette */
:root {
    --base: #1e1e2e;
    --mantle: #181825;
    --surface0: #313244;
    --surface1: #45475a;
    --text: #cdd6f4;
    --subtext: #a6adc8;
    --lavender: #b4befe;
    --mauve: #cba6f7;
    --green: #a6e3a1;
    --red: #f38ba8;
}

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

body {
    background-color: var(--base);
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.glow {
    color: var(--lavender);
    font-size: 3.5rem;
    text-shadow: 0 0 15px rgba(203, 166, 247, 0.4);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--subtext);
    margin-bottom: 2rem;
}

/* Container: Removed overflow:hidden so menu can slide out */
.expandable-container {
    background-color: var(--surface0);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--surface1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

/* --- CUSTOM SELECTOR --- */
.custom-select {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
    user-select: none;
}

.select-trigger {
    background-color: var(--mantle);
    color: var(--lavender);
    border: 1px solid var(--surface1);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.select-trigger:hover {
    background-color: var(--base);
}

.arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--lavender);
    border-bottom: 2px solid var(--lavender);
    transform: rotate(45deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 4px;
}

/* The Slide-out Menu */
.options-menu {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background-color: var(--mantle);
    border: 1px solid var(--surface1);
    border-radius: 12px;
    z-index: 100; /* Ensure it stays above the address box */
    overflow: hidden;
    
    /* Animation state: Hidden */
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease-in-out;
    pointer-events: none;
}

/* Open State Toggle */
.custom-select.active .options-menu {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.custom-select.active .arrow {
    transform: rotate(-135deg);
    margin-bottom: -4px;
}

.option {
    padding: 1rem;
    color: var(--subtext);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease-in-out;
}

.option:hover {
    background-color: var(--base);
    color: var(--lavender);
    padding-left: 1.5rem;
}

/* --- ADDRESS BOX & BUTTON --- */
.ip-box {
    background-color: var(--base);
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--surface1);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

code {
    color: var(--green);
    font-size: 0.9rem;
    word-break: break-all;
}

.link-card-btn {
    width: 100%;
    border: none;
    background-color: var(--lavender);
    color: var(--base);
    padding: 1rem;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease-in-out;
}

.link-card-btn:hover {
    transform: translateY(-3px);
    background-color: var(--lavender);
    box-shadow: 0 0 15px rgba(203, 166, 247, 0.4);
}

footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: var(--surface1);
}
