/* ═══════════════════════════════════════════════════════════════
   STYLES FOR YOUR LOVE WEBSITE
   Pretty, responsive, easy to read
   ═══════════════════════════════════════════════════════════════ */

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #fdf6f6 0%, #f7e8e8 100%);
    min-height: 100vh;
    color: #4a3f3f;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5e6e8 0%, #d4a5a5 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-title {
    font-size: 2rem;
    color: #c48b8b;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 2px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #f0d4d4;
    border-radius: 30px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
    background: #fefefe;
}

.input-group input:focus {
    border-color: #c48b8b;
}

.input-group input::placeholder {
    color: #c9b3b3;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #c48b8b 0%, #d4a5a5 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 1px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 139, 139, 0.4);
}

.error-msg {
    color: #d47f7f;
    margin-top: 20px;
    font-size: 0.9rem;
    min-height: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTAINER
   ═══════════════════════════════════════════════════════════════ */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER STYLES
   ═══════════════════════════════════════════════════════════════ */

.header {
    text-align: center;
    padding: 40px 20px 60px;
    position: relative;
}

.main-title {
    font-size: 3rem;
    color: #c48b8b;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.1rem;
    color: #a89090;
    font-style: italic;
}

.logout-btn {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #d4a5a5;
    border-radius: 20px;
    color: #c48b8b;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c48b8b;
    color: white;
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLES LIST (HOME PAGE)
   ═══════════════════════════════════════════════════════════════ */

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #d4a5a5;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.article-preview {
    font-size: 1.3rem;
    color: #5a4a4a;
    font-weight: 400;
    margin-bottom: 10px;
}

.article-date {
    font-size: 0.9rem;
    color: #b39999;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0d4d4;
}

.back-btn {
    color: #c48b8b;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: #a87070;
}

.article-date-nav {
    color: #b39999;
    font-style: italic;
    font-size: 0.95rem;
}

.article-content {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.article-title {
    font-size: 2.2rem;
    color: #c48b8b;
    font-weight: 400;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.4;
}

.article-content p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    text-align: justify;
    color: #5a4a4a;
}

.article-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER STYLES
   ═══════════════════════════════════════════════════════════════ */

.footer {
    text-align: center;
    padding: 40px 20px;
    color: #b39999;
    font-style: italic;
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
    }

    .article-content {
        padding: 30px 25px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-content p {
        font-size: 1.05rem;
        text-align: left;
    }

    .logout-btn {
        position: static;
        margin-top: 20px;
    }

    .header {
        padding: 20px 20px 40px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 40px 25px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .article-card {
        padding: 20px;
    }

    .article-preview {
        font-size: 1.1rem;
    }

    .article-nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
