@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Outfit:wght@300;400;500&family=Italiana&display=swap');

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

body {
    font-family: 'Outfit', sans-serif;
    background-image: url('https://static.prod-images.emergentagent.com/jobs/29eb25dd-0a53-463e-b146-c4b241edf163/images/978bf3e4caa035cddad672a7d00ba674da00211a5f728130e54bef1d841975c5.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: #2A2723;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 24px;
}

/* LOGIN SCREEN */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    text-align: center;
}

.logo {
    font-family: 'Italiana', serif;
    font-size: 4rem;
    color: #2A2723;
    margin-bottom: 48px;
}

.code-input {
    width: 250px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #E8E3D9;
    text-align: center;
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    padding: 8px 16px;
    color: #2A2723;
    outline: none;
    transition: border-color 0.3s;
}

.code-input:focus {
    border-color: #C5A059;
}

.code-input::placeholder {
    color: #8C857B;
}

.login-btn {
    display: block;
    margin: 32px auto 0;
    padding: 12px 32px;
    background: #C5A059;
    color: white;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    transition: all 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

.error-msg {
    color: #B76E79;
    margin-top: 16px;
    font-size: 0.9rem;
}

/* LETTER CARD */
.letter-card {
    background: white;
    border: 1px solid #E8E3D9;
    box-shadow: 0 20px 60px rgba(42, 39, 35, 0.08);
    padding: 48px;
    margin-bottom: 48px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.letter-content {
    text-align: center;
}

.heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #C5A059;
    margin-bottom: 16px;
}

.body-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2A2723;
    margin-bottom: 16px;
}

.body-text strong {
    font-weight: 500;
}

/* LIKE/DISLIKE */
.reactions {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #E8E3D9;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #E8E3D9;
    border-radius: 50px;
    background: transparent;
    color: #8C857B;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.reaction-btn:hover {
    border-color: #C5A059;
    color: #C5A059;
}

.reaction-btn.like:hover {
    border-color: #B76E79;
    color: #B76E79;
}

.reaction-btn svg {
    width: 18px;
    height: 18px;
}

/* GUESTBOOK */
.guestbook {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(42, 39, 35, 0.05);
    padding: 48px;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.guestbook-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 32px;
    color: #2A2723;
}

.message-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #E8E3D9;
    padding: 8px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #2A2723;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
}

.message-form textarea:focus {
    border-color: #C5A059;
}

.message-form textarea::placeholder {
    color: #8C857B;
}

.submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #C5A059;
    color: white;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    transition: all 0.3s;
}

.submit-btn:hover {
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

.current-message {
    margin-top: 32px;
    padding: 16px;
    border: 1px solid #E8E3D9;
    background: #FDFBF7;
}

.message-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    color: #4A453E;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.message-time {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8C857B;
}

.delete-btn {
    background: transparent;
    border: none;
    color: #8C857B;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.delete-btn:hover {
    opacity: 1;
    color: #B76E79;
}

.no-message {
    text-align: center;
    color: #8C857B;
    margin-top: 24px;
}
