/* --- 1. FONTS & ROOT VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Source+Sans+Pro:wght@400;600&display=swap');

:root {
    --spine-cream: #fcfaf7;
    --spine-white: #ffffff;
    --spine-coffee: #382110;
    --spine-border: #e8e2da;
    --spine-text-muted: #6b5b4e;
    --spine-shadow: rgba(56, 33, 16, 0.08);
}

/* --- 2. GENERAL STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--spine-cream);
    color: var(--spine-coffee);
    font-family: 'Source Sans Pro', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* --- 3. MASSIVE BUTTON PORTAL --- */
.portal-container {
    display: flex;
    gap: 60px;
    z-index: 1;
}

.massive-btn {
    width: 350px;
    height: 350px;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    border: 1px solid var(--spine-border);
    border-radius: 24px;
    background: var(--spine-white);
    box-shadow: 0 15px 45px var(--spine-shadow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--spine-coffee);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.massive-btn:hover {
    transform: translateY(-15px);
    background: var(--spine-coffee);
    color: var(--spine-cream);
    box-shadow: 0 30px 60px rgba(56, 33, 16, 0.25);
}

/* --- 4. MODALS --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(56, 33, 16, 0.4);
    backdrop-filter: blur(5px);
    z-index: 100;
}

.modal-content {
    background: var(--spine-white);
    margin: 5% auto;
    padding: 50px;
    width: 90%;
    max-width: 500px;
    border-radius: 30px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--spine-border);
    position: relative;
    animation: slideUp 0.4s ease-out;
}

.wide {
    max-width: 900px;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- 5. FORMS & INPUTS --- */
h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

input, textarea {
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
    font-size: 1rem;
    font-family: inherit;
    transition: border 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--spine-coffee);
}

textarea {
    height: 120px;
    resize: none;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

#submitEntry {
    flex: 2;
    background: var(--spine-coffee);
    color: var(--spine-white);
    padding: 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.cancel-btn {
    flex: 1;
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 18px;
    border-radius: 12px;
    cursor: pointer;
}

/* --- 6. SUGGESTIONS FEED --- */
#suggestionsFeed {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 15px;
}

#suggestionsFeed::-webkit-scrollbar {
    width: 6px;
}

#suggestionsFeed::-webkit-scrollbar-thumb {
    background: var(--spine-border);
    border-radius: 10px;
}

.suggestion-card {
    border-bottom: 1px solid var(--spine-border);
    padding: 25px 0;
}

.suggestion-card:last-child {
    border-bottom: none;
}

.suggestion-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.suggestion-card p.author {
    color: var(--spine-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.suggestion-card p.reason {
    font-style: italic;
    line-height: 1.6;
    color: #444;
}