:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --text-color: #2d3436;
    --white-glass: rgba(255, 255, 255, 0.7);
    --dark-glass: rgba(0, 0, 0, 0.05);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --font-heading: 'Mochiy Pop One', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* Ensure vertical stacking */
    gap: 2rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    /* Deep Calm Blue */
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* Background animation removed for calm theme */
.background-animation {
    display: none;
}

.container {
    width: 100%;
    max-width: 800px;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: #fff;
    /* White for dark mode */
    margin-bottom: 0.5rem;
}

.header p {
    color: rgba(255, 255, 255, 0.85);
    /* Slightly transparent white */
    font-size: 1.1rem;
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.result-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.result-card {
    width: 100%;
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.4;
    color: #fff;
    /* White text for dark glass */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.generate-btn {
    background: #fff;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.generate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.generate-btn:active {
    transform: scale(0.95);
}

.share-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.share-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background: #333;
}

.hidden {
    display: none !important;
}

.columns-section {
    padding: 2rem;
}

.columns-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    color: var(--text-color);
}

.columns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.column h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #555;
    font-weight: bold;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.6);
    resize: vertical;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: #fff;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    color: #fff;
    padding: 10px;
}

.icon-btn:hover {
    opacity: 1;
}

.settings-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer {
    text-align: center;
    margin-top: 3rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .columns-grid {
        grid-template-columns: 1fr;
    }

    .result-text {
        font-size: 1.5rem;
    }
}