﻿body {
    margin: 0;
    padding: 140px 0 90px;
    font-family: Arial, sans-serif;
    background: #EAF7FD;
    color: #111;
    box-sizing: border-box;
}

#topImageHeader {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

#topHeaderImage {
    display: block;
    width: 100%;
    border: none;
}

#topNavigation {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

#topNavigation .postsLinkNavigation,
#topNavigation .infoLinkNavigation,
#topNavigation .picturesLinkNavigation,
#topNavigation .reviewsLinkNavigation,
#topNavigation .commentLinkNavigation {
    width: 20%;
    float: left;
}

#topNavigation::after {
    content: '';
    display: block;
    clear: both;
}

#topNavigation a {
    display: block;
    text-decoration: none;
}

#topNavigation img {
    display: block;
    width: 100%;
    border: none;
}

main {
    max-width: 600px;
    margin: 0 auto 90px;
    padding: 0 10px;
}

.page-title {
    text-align: center;
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8a0808;
}

.page-subtitle {
    text-align: center;
    margin: 0 0 14px;
    color: #343a46;
    font-size: 12px;
    font-style: italic;
    line-height: 1.35;
}

.content-box {
    background: #fff;
    border: 1px solid #d9d0c5;
    border-radius: 12px;
    padding: 16px;
}

.entry-card,
.review-card {
    background: #fff8df;
    border: 1px solid #e1d29f;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

.entry-title,
.review-title {
    font-size: 16px;
    font-weight: 700;
    color: #6f0c00;
    margin-bottom: 8px;
}

.entry-meta,
.review-meta {
    color: #5f5f5f;
    font-size: 13px;
    margin-bottom: 12px;
}

.view-post a,
.review-action {
    display: inline-block;
    background: #005400;
    color: #f7ec82;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 9px;
    font-weight: 700;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.35);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 10px;
}

.info-grid div {
    background: #f8fee2;
    border: 1px solid #d6e3a9;
    border-radius: 10px;
    padding: 11px 12px;
    color: #1d3a12;
    font-size: 14px;
    font-weight: 700;
}

.comment-list {
    max-width: 560px;
    margin: 0 auto;
}

.comment-item {
    background: #f8f7ef;
    border: 1px solid #c5d0af;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.comment-header {
    background: #d8e4bc;
    color: #4a5b3a;
    font-size: 12px;
    font-style: italic;
    padding: 8px 12px;
    border-bottom: 1px solid #c6d2b9;
}

.comment-header strong {
    color: #0e5ba8;
    font-weight: 700;
    font-style: normal;
}

.comment-body {
    background: #fff;
    color: #1c1c1c;
    padding: 11px 12px 12px;
    font-size: 14px;
    line-height: 1.4;
}

.report-area {
    text-align: right;
    padding: 0 10px 10px 0;
}

.report-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ededed 0%, #b3b3b3 100%);
    color: #222;
    border: 1px solid #7f7f7f;
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.report-btn::after {
    content: " 🚩";
    margin-left: 4px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 10px;
}

.image-grid img {
    width: 100%;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.review-body {
    color: #1c1c1c;
    font-size: 15px;
    line-height: 1.6;
}

.review-score {
    display: inline-block;
    margin-top: 10px;
    background: #d8e4bc;
    color: #264229;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 13px;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 10px 10px;
    background: #1f1e1b;
    border-top: 2px solid #444;
    box-sizing: border-box;
}

.back-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    flex: 0 0 auto;
}

.comment-box {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    border-radius: 14px;
    border: 1px solid #444;
    padding: 4px 10px;
    background: #1f1f1f;
    color: #d1d1d1;
    font-size: 12px;
    font-style: italic;
    height: 26px;
    line-height: 1.2;
    box-sizing: border-box;
}

.footer-note {
    flex: 1 1 100%;
    color: #c3c3c3;
    font-size: 12px;
    line-height: 1.4;
    max-width: 100%;
    margin: 0;
}

.comment-box:focus {
    outline: 2px solid #666;
}

.footer-note {
    color: #c3c3c3;
    font-size: 12px;
    line-height: 1.4;
    max-width: 250px;
}

@media (max-width: 620px) {
    main {
        margin: 110px auto 220px;
        padding: 0 8px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .back-btn {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }
}
