/* ============================= */
/* RESET */
/* ============================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #18181b;
    color: #fff;
    font-size: 15px;
    overflow-x: hidden;
}

/* ============================= */
/* CONTAINER */
/* ============================= */

.centered-container {
    max-width: 380px;
    width: 100%;
    margin: 8vh auto;
    padding: 2rem 1.4rem;

    background: rgba(35, 35, 45, 0.85);
    backdrop-filter: blur(12px);

    border-radius: 1.2rem;
    border: 1px solid #2a2d36;

    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* ============================= */
/* HERO */
/* ============================= */

.hero {
    text-align: center;
    margin-bottom: 1.6rem;
}

.hero-title {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #f3f4f6;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.5;
    margin-top: 0.4rem;
}

.hero-buttons {
    margin: 1.3rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* ============================= */
/* TYPOGRAPHY */
/* ============================= */

h1 {
    font-size: 1.2rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

label {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* ============================= */
/* INPUTS */
/* ============================= */

input, textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;

    border-radius: 0.65rem;
    border: 1px solid #2a2d36;

    background: #1f2128;
    color: #fff;

    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

input:focus, textarea:focus {
    border: 1px solid #6366f1;
    background: #1b1d24;
    outline: none;
}

/* ============================= */
/* BUTTONS */
/* ============================= */

button, .btn {
    width: 100%;
    padding: 0.75rem;

    border-radius: 0.7rem;
    border: none;

    background: #6366f1;
    color: #fff;

    font-weight: 500;
    font-size: 0.95rem;

    text-decoration: none;
    text-align: center;

    transition: all 0.2s ease;
}

button:hover, .btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #2a2d36;
}

.btn-secondary:hover {
    background: #323540;
}

/* ============================= */
/* MESSAGES */
/* ============================= */

.message-error {
    background: #2a1919;
    color: #ff7373;
    padding: 0.6rem;
    border-radius: 0.6rem;
    margin-top: 0.5rem;
}

.message-success {
    background: #19321d;
    color: #c9ffc9;
    padding: 0.6rem;
    border-radius: 0.6rem;
}

/* ============================= */
/* PROFILE CARDS */
/* ============================= */

.profile-card {
    background: #1f2128;
    border: 1px solid #2a2d36;

    border-radius: 0.7rem;
    padding: 0.9rem;

    margin-top: 0.7rem;
    transition: 0.2s;
}

.profile-card:hover {
    border-color: #3a3d45;
}

.profile-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.profile-nekrolog {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* ============================= */
/* FLOAT BUTTON */
/* ============================= */

.floating-home-btn {
    position: fixed;
    right: 18px;
    bottom: 20px;

    background: #6366f1;
    color: #fff;

    padding: 0.6em 1.2em;
    border-radius: 1em;

    font-size: 0.9rem;
    text-decoration: none;

    box-shadow: 0 3px 14px #0008;
}

/* ============================= */
/* 🔥 MEMORIAL PAGE */
/* ============================= */

body.memorial-page {
    background: linear-gradient(180deg, #2a2d36, #1f2128);
    color: #d6d6d6;
}

.memorial-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 70px 20px;
    text-align: center;
}

.memorial-subtitle {
    letter-spacing: 4px;
    font-size: 12px;
    color: #9ca3af;
}

.memorial-name {
    font-size: 38px;
    font-weight: 300;
    color: #f3f4f6;
    margin-top: 10px;
}

.memorial-dates {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 30px;
}

.memorial-divider {
    width: 70px;
    height: 1px;
    background: #6b7280;
    margin: 25px auto;
    opacity: 0.4;
}

.memorial-text {
    font-size: 15px;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    color: #c7c9cc;
}

.memorial-text p {
    margin-bottom: 16px;
}

.memorial-footer {
    margin-top: 30px;
    font-size: 12px;
    color: #9ca3af;
}

/* PHOTO */

.memorial-photo {
    width: 120px;
    height: 120px;
    margin: 18px auto;

    border-radius: 50%;
    overflow: hidden;

    border: 1px solid #3a3d45;
    box-shadow: 0 4px 20px #0006;
}

.memorial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* DECOR */

.memorial-decoration-top,
.memorial-decoration-bottom {
    font-size: 20px;
    opacity: 0.12;
}

/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 850px) {
    .centered-container {
        margin: 5vh auto;
        padding: 1.6rem 1rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .memorial-name {
        font-size: 26px;
    }
}