/* ================= GUESTBOOK PAGE STYLES ================= */

/* HERO SECTION */
.guestbook-hero {
    text-align: center;
    padding: 80px 24px 60px;
    animation: fadeInDown 0.8s ease-out;
}

.guestbook-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f6d27a 0%, #d7a94b 50%, #f6d27a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(246, 210, 122, 0.2);
}

.guestbook-subtitle {
    font-size: 1.2rem;
    color: #a0aec0;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* WRAPPER */
.guestbook-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 40px 24px;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* FORM SECTION */
.guestbook-form-container {
    background: linear-gradient(135deg, rgba(246, 210, 122, 0.05) 0%, rgba(215, 169, 75, 0.03) 100%);
    border: 1px solid rgba(246, 210, 122, 0.15);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.guestbook-form-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(246, 210, 122, 0.1), transparent);
    pointer-events: none;
}

.guestbook-form-container:hover {
    border-color: rgba(246, 210, 122, 0.3);
    background: linear-gradient(135deg, rgba(246, 210, 122, 0.08) 0%, rgba(215, 169, 75, 0.05) 100%);
    box-shadow: 0 8px 32px rgba(246, 210, 122, 0.15);
}

/* ENTRIES SECTION */
.guestbook-entries-container {
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* SECTION HEADERS */
.form-section-header,
.entries-section-header {
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f6d27a;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-divider {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, #f6d27a 0%, transparent 100%);
    margin-top: 12px;
}

.form-description {
    color: #a0aec0;
    font-weight: 300;
    margin-bottom: 24px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* FORM STYLES */
.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f6d27a;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(246, 210, 122, 0.2);
    border-radius: 10px;
    color: #f3f4f6;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(246, 210, 122, 0.4);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 20px rgba(246, 210, 122, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.submit-button {
    padding: 14px 32px;
    background: linear-gradient(135deg, #f6d27a 0%, #d7a94b 100%);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
    box-shadow: 0 8px 24px rgba(246, 210, 122, 0.3);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.submit-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(246, 210, 122, 0.4);
}

.submit-button:active {
    transform: translateY(-2px);
}

.form-notice {
    font-size: 0.85rem;
    color: #a0aec0;
    text-align: center;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* SUCCESS MESSAGE */
.success-message {
    padding: 16px 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    color: #86efac;
    text-align: center;
    font-weight: 500;
    display: none;
    animation: slideDown 0.3s ease-out;
    position: relative;
    z-index: 1;
}

.success-message.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ENTRIES LIST */
.guestbook-entries-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* GUESTBOOK ENTRY */
.guestbook-entry {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(246, 210, 122, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.guestbook-entry::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(246, 210, 122, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.guestbook-entry:hover::before {
    transform: translateX(100%);
}

.guestbook-entry:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(246, 210, 122, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(246, 210, 122, 0.15);
}

/* ================= REFINEMENT ================= */
.guestbook-hero {
    padding: 46px 0 28px;
}

.guestbook-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.guestbook-subtitle {
    max-width: 40rem;
    margin: 0 auto;
    color: rgba(243, 237, 230, 0.72);
    line-height: 1.8;
}

.guestbook-wrapper {
    gap: 24px;
    padding: 18px 0 0;
    align-items: start;
}

.guestbook-form-container,
.guestbook-entries-container,
.guestbook-cta {
    border-radius: 30px;
}

.guestbook-form-container {
    padding: 32px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 246, 223, 0.05);
}

.form-description,
.form-notice {
    color: rgba(243, 237, 230, 0.68);
}

.guestbook-entry {
    border-radius: 20px;
    padding: 22px;
}

.entry-pending {
    opacity: 0.6;
    border-style: dashed !important;
    border-color: rgba(246, 210, 122, 0.2) !important;
}

.entry-pending-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(246, 210, 122, 0.7);
    background: rgba(246, 210, 122, 0.07);
    border: 1px solid rgba(246, 210, 122, 0.18);
    border-radius: 6px;
    padding: 3px 8px;
    margin-bottom: 10px;
}

.guestbook-cta {
    margin: 40px auto 88px;
    padding: 38px 28px;
    border: 1px solid rgba(246, 210, 122, 0.18);
    background: linear-gradient(135deg, rgba(246, 210, 122, 0.08), rgba(215, 169, 75, 0.05));
    text-align: center;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 246, 223, 0.05);
}

.guestbook-cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 0.96;
    margin-bottom: 10px;
    color: #fff1d2;
}

.guestbook-cta p {
    color: rgba(243, 237, 230, 0.72);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .guestbook-hero {
        padding-top: 34px;
    }

    .guestbook-wrapper {
        grid-template-columns: 1fr;
    }

    .guestbook-form-container,
    .guestbook-entries-container,
    .guestbook-cta {
        border-radius: 24px;
    }

    .guestbook-form-container,
    .guestbook-cta {
        padding: 24px;
    }
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.entry-name {
    font-weight: 600;
    color: #f6d27a;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.entry-date {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 300;
}

.entry-message {
    color: #d1d5db;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.entry-hearts {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* CTA SECTION */
.guestbook-cta {
    text-align: center;
    padding: 80px 24px;
    margin: 60px 24px;
    background: linear-gradient(135deg, rgba(246, 210, 122, 0.08) 0%, rgba(215, 169, 75, 0.05) 100%);
    border: 1px solid rgba(246, 210, 122, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.guestbook-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f6d27a 0%, #d7a94b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guestbook-cta p {
    font-size: 1.1rem;
    color: #a0aec0;
    font-weight: 300;
}

/* ANIMATIONS */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .guestbook-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .guestbook-form-container {
        height: auto;
    }
}

@media (max-width: 768px) {
    .guestbook-title {
        font-size: 2.5rem;
    }

    .guestbook-subtitle {
        font-size: 1rem;
    }

    .guestbook-wrapper {
        gap: 24px;
        padding: 24px 16px;
    }

    .guestbook-form-container,
    .guestbook-entries-container {
        padding: 28px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .guestbook-entry {
        padding: 16px;
    }

    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .entry-date {
        margin-top: 4px;
    }

    .guestbook-cta {
        padding: 40px 24px;
        margin: 40px 16px;
    }

    .guestbook-cta h2 {
        font-size: 1.8rem;
    }

    .guestbook-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .guestbook-title {
        font-size: 2rem;
    }

    .guestbook-wrapper {
        gap: 16px;
        padding: 16px 12px;
    }

    .guestbook-form-container {
        padding: 20px;
    }

    .guestbook-entries-container {
        padding: 20px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }

    .submit-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* ================= MISTRESS MODE STYLES ================= */
body.mistress-mode .guestbook-title {
    background: linear-gradient(135deg, #d4af37 0%, #8b6914 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

body.mistress-mode .guestbook-subtitle {
    color: #e0b0e0;
}

body.mistress-mode .guestbook-form-container {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(139, 105, 20, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

body.mistress-mode .guestbook-form-container:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(139, 105, 20, 0.08) 100%);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
}

body.mistress-mode .section-title {
    color: #d4af37;
}

body.mistress-mode .section-divider {
    background: linear-gradient(90deg, #d4af37 0%, transparent 100%);
}

body.mistress-mode .form-group label {
    color: #d4af37;
}

body.mistress-mode .form-group input,
body.mistress-mode .form-group textarea {
    border-color: rgba(212, 175, 55, 0.2);
    background: rgba(15, 23, 42, 0.7);
}

body.mistress-mode .form-group input:focus,
body.mistress-mode .form-group textarea:focus {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

body.mistress-mode .submit-button {
    background: linear-gradient(135deg, #d4af37 0%, #8b6914 100%);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

body.mistress-mode .submit-button:hover {
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
}

body.mistress-mode .success-message {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
}

body.mistress-mode .guestbook-entry {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

body.mistress-mode .guestbook-entry:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

body.mistress-mode .entry-name {
    color: #d4af37;
}

body.mistress-mode .entry-hearts {
    color: #d4af37;
}

body.mistress-mode .guestbook-cta {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(139, 105, 20, 0.08) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

body.mistress-mode .guestbook-cta h2 {
    background: linear-gradient(135deg, #d4af37 0%, #8b6914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================= MODERN OVERRIDES ================= */
body .guestbook-title,
body .guestbook-cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.05em;
}

body .guestbook-form-container,
body .guestbook-cta {
    background:
        linear-gradient(180deg, rgba(14, 21, 30, 0.90), rgba(9, 14, 20, 0.84)),
        radial-gradient(circle at top left, rgba(255, 156, 107, 0.08), transparent 34%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 90px rgba(4, 7, 12, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body .guestbook-form-container:hover {
    border-color: rgba(255, 156, 107, 0.24);
}

body .guestbook-entry {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

body .guestbook-entry:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 156, 107, 0.24);
    box-shadow: 0 18px 34px rgba(4, 7, 12, 0.22);
}

body .submit-button {
    min-height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffd0a5, #ff9c6b);
    color: #18120f;
    font-weight: 700;
    box-shadow: 0 18px 40px rgba(255, 156, 107, 0.24);
}

body .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(255, 156, 107, 0.28);
}

body.mistress-mode .guestbook-form-container,
body.mistress-mode .guestbook-cta {
    background:
        linear-gradient(180deg, rgba(22, 16, 24, 0.92), rgba(14, 10, 18, 0.86)),
        radial-gradient(circle at top left, rgba(255, 126, 164, 0.10), transparent 34%);
    border-color: rgba(255, 255, 255, 0.08);
}

body.mistress-mode .guestbook-entry:hover,
body.mistress-mode .guestbook-form-container:hover {
    border-color: rgba(255, 126, 164, 0.26);
}

body.mistress-mode .submit-button {
    background: linear-gradient(135deg, #ffc0d3, #ff7ea4);
    color: #1f1017;
    box-shadow: 0 18px 40px rgba(255, 126, 164, 0.26);
}

body.mistress-mode .guestbook-title,
body.mistress-mode .guestbook-cta h2 {
    background: linear-gradient(120deg, #fff7fb, #ffc1d4 44%, #ff7ea4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}
