:root {
    --bg-body: #F4EFE8;
    --bg-card: #FCFBF9;
    --text-burgundy: #5C1D24;
    --text-main: #333333;
    --text-light: #777777;
    --gold-accent: #B69772;
    --gold-light: rgba(182, 151, 114, 0.2);
    --btn-color: #5C1D24;
    --btn-hover: #7A2A33;
    --msg-height: 150px;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

.guestbook-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    padding: 40px 20px;
    border-radius: 8px;
}

.add-entry-card {
    background-color: var(--bg-card);
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    position: relative;
    margin-bottom: 80px;
    border-radius: 4px;
}

.add-entry-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--gold-light);
    pointer-events: none;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.form-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(182, 151, 114, 0.4);
    padding: 15px 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-main);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--text-burgundy);
}

/* Wpięcie nowej zmiennej dla wysokości pola tekstowego */
textarea.form-control {
    resize: vertical;
    min-height: var(--msg-height);
    line-height: 1.6;
}

.form-control::placeholder {
    color: #999;
    font-weight: 300;
}

.media-upload-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    z-index: 1;
    position: relative;
}

.file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-burgundy);
    padding: 12px 24px;
    border: 1px dashed var(--text-burgundy);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(92, 29, 36, 0.03);
    width: 100%;
}

.file-label:hover {
    background-color: rgba(92, 29, 36, 0.08);
}

.file-label svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-submit {
    display: block;
    width: 100%;
    background-color: var(--btn-color);
    color: #ffffff;
    border: 1px solid var(--btn-color);
    padding: 18px;
    font-family: var(--font-body);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border-radius: 3px;
}

.btn-submit:hover {
    background-color: var(--btn-hover);
    border-color: var(--btn-hover);
    color: #ffffff;
}

.btn-submit:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.feed-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--gold-accent);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 40px;
}

.feed-divider::before,
.feed-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gold-light);
}

.feed-divider::before {
    margin-right: 20px;
}

.feed-divider::after {
    margin-left: 20px;
}

.entry-card {
    background-color: var(--bg-card);
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    border-left: 3px solid var(--gold-accent);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.entry-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.entry-photo {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 20px;
}

.entry-message {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-main);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 20px;
}

.entry-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--gold-light);
    padding-top: 15px;
}

.entry-author {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-burgundy);
}

.entry-time {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 300;
}

/* Optymalizacja Mobile (Boxy i odstępy) */
@media (max-width: 768px) {
    .guestbook-container {
        padding: 15px 10px;
    }

    .add-entry-card {
        padding: 35px 25px;
        margin-bottom: 50px;
    }

    .entry-card {
        padding: 25px 20px;
    }

    .entry-message {
        font-size: 1.4rem;
    }

    .btn-submit {
        padding: 16px;
        font-size: 13px;
    }
}