/* =========================================
   Shared cards / surfaces
========================================= */

.card,
.stat-card,
.admin-sidebar,
.admin-content,
.post-sidebar,
.card-form,
.post-main {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 1) 100%);
    border: 1px solid #e6e6e6;
    border-radius: 26px;
    padding: 20px;
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.06);
}

.thumb,
.hero-image,
.placeholder,
.mini-placeholder {
    background: linear-gradient(135deg, #5f6f52, #1f2a44);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #fff;
}

.thumb {
    height: 160px;
}

.thumb-img {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(230, 230, 230, 0.9);
}

.hero-photo {
    width: 100%;
    max-height: 420px;
    display: block;
    object-fit: cover;
    border-radius: 22px;
    margin-bottom: 14px;
    border: 1px solid rgba(230, 230, 230, 0.9);
    box-shadow: 0 14px 30px rgba(17, 17, 17, 0.06);
}

.hero-image {
    height: 360px;
    margin-bottom: 14px;
}

.mini-placeholder {
    width: 64px;
    height: 64px;
    font-size: 12px;
    padding: 6px;
    text-align: center;
}

/* =========================================
   Front shared UI
========================================= */

.front-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #eef2ec;
    color: #4e5c44;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    border: 1px solid #dfe7db;
}

.front-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.front-section-title {
    margin: 0;
    font-size: clamp(28px, 6vw, 46px);
    line-height: 1.05;
    color: #111111;
    letter-spacing: -0.02em;
}

.front-section-subtitle {
    margin: 6px 0 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.7;
}

.front-card-link {
    display: block;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.front-card-link:hover {
    transform: translateY(-5px);
}

.front-card-title {
    margin: 14px 0 10px;
    font-size: 28px;
    line-height: 1.1;
    color: #111111;
}

.front-card-title-sm {
    margin: 14px 0 8px;
    font-size: 21px;
    line-height: 1.2;
    color: #111111;
}

.front-card-text {
    margin: 0;
    color: #666666;
    line-height: 1.75;
}

.front-empty {
    padding: 28px 20px;
    border-radius: 24px;
    background: #fafafa;
    text-align: center;
    color: #666666;
    border: 1px solid #e8e8e8;
    box-shadow: 0 14px 30px rgba(17, 17, 17, 0.04);
}

.front-alert-error {
    color: #9a2c35;
    margin-bottom: 16px;
    background: #fff4f4;
    border: 1px solid #f4d0d4;
    padding: 12px 14px;
    border-radius: 16px;
    font-weight: 600;
}

/* =========================================
   Forms
========================================= */

.form,
.stack-form {
    display: grid;
    gap: 12px;
}

.form input,
.form textarea,
.form button,
.stack-form input,
.stack-form textarea,
.stack-form select,
.stack-form button {
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid #e4e4e4;
    background: #ffffff;
    color: #222222;
    width: 100%;
}

.stack-form label {
    font-size: 14px;
    font-weight: 700;
    color: #444444;
}

.quick-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #111111;
}

.quick-input,
.quick-select,
.quick-textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #e4e4e4;
    background: #ffffff;
    color: #222222;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quick-input:focus,
.quick-select:focus,
.quick-textarea:focus {
    border-color: #5f6f52;
    box-shadow: 0 0 0 4px rgba(95, 111, 82, 0.10);
    background: #fff;
}

.quick-textarea {
    resize: vertical;
}

.check-line {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #666666;
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.login-form {
    max-width: 520px;
}

/* =========================================
   Buttons / actions
========================================= */

.button,
.stack-form button,
.form button,
button,
.button-link,
.table-button {
    cursor: pointer;
    background: linear-gradient(135deg, #5f6f52, #708364);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(95, 111, 82, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.button:hover,
.stack-form button:hover,
.form button:hover,
button:hover,
.button-link:hover,
.table-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(95, 111, 82, 0.20);
}

.button-link.alt {
    background: #ffffff;
    color: #1f2a44;
    border: 1px solid #d9dfeb;
    box-shadow: none;
}

.quick-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1f2a44, #2d3a59);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 22px rgba(31, 42, 68, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(31, 42, 68, 0.22);
}

.quick-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 16px;
    background: #ffffff;
    color: #222222;
    border: 1px solid #e4e4e4;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.quick-secondary-btn:hover {
    border-color: #cfd7c9;
    background: #f8faf7;
    transform: translateY(-1px);
}

.quick-submit-btn {
    border: none;
    padding: 14px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #5f6f52, #708364);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(95, 111, 82, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(95, 111, 82, 0.22);
}

.post-like-btn {
    border: none;
    padding: 13px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1f2a44, #2d3a59);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(31, 42, 68, 0.18);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* =========================================
   Alerts / status
========================================= */

.alert {
    padding: 12px 14px;
    border-radius: 16px;
    margin-bottom: 14px;
}

.alert.error {
    background: #fff4f4;
    border: 1px solid #f2d3d3;
    color: #8f3131;
}

.alert.success {
    background: #eff8f1;
    border: 1px solid #cfe7d3;
    color: #2f6440;
}

.post-like-count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e4e4e4;
    color: #666666;
}

.post-like-count strong {
    font-size: 18px;
    color: #111111;
}

.post-type-badge {
    display: inline-block;
    margin: 8px 0 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f6efe2;
    color: #9e7f45;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #eadfc8;
}

.table-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.type-badge {
    background: #eef2ec;
    color: #4e5c44;
    border: 1px solid #dfe7db;
}

.muted-badge {
    background: #f5f5f5;
    color: #777777;
    border: 1px solid #e6e6e6;
}

/* =========================================
   Lists / misc
========================================= */

.related-item {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #ededed;
    color: #666666;
}

.wall-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 22px;
}

.wall-filter-btn {
    border: none;
    background: #f7f7f7;
    color: #222222;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    border: 1px solid #e4e4e4;
}

.wall-filter-btn.active {
    background: linear-gradient(135deg, #5f6f52, #708364);
    color: #fff;
    border-color: transparent;
}

.table-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.preview-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    margin-top: 8px;
    border: 1px solid #e6e6e6;
}

.page-head-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.page-head-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================================
   POST CARD (LIKE / COMMENT / RATING / COLORS)
========================================= */

.post-card {
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #e6e6e6;
    box-shadow: 0 14px 30px rgba(17, 17, 17, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(17, 17, 17, 0.10);
}

.post-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-card-body {
    padding: 14px;
}

.post-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 10px;
    gap: 8px;
    flex-wrap: wrap;
}

.pc-like {
    color: #c86b5d;
    font-weight: 700;
}

.pc-comment {
    color: #777777;
}

.pc-rating {
    color: #c6a96b;
    font-weight: 700;
}

.post-card-colors {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

/* === Smaller post cards === */

.grid.cards {
    gap: 18px;
}

.post-card-img,
.thumb-img {
    height: 190px;
    object-fit: cover;
}

.post-card-body {
    padding: 12px 14px;
}

.front-card-title-sm {
    font-size: 17px;
    margin: 8px 0;
}

.front-card-text {
    font-size: 13px;
    line-height: 1.65;
}

.post-card-actions {
    font-size: 12px;
    gap: 8px;
}

.post-type-badge {
    font-size: 11px;
    padding: 5px 10px;
}

.color-dot {
    width: 10px;
    height: 10px;
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 900px) {
    .split-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .thumb-img,
    .post-card-img {
        height: 160px;
    }

    .hero-photo {
        max-height: 260px;
    }

    .front-section-title {
        font-size: clamp(24px, 8vw, 34px);
    }

    .front-card-title {
        font-size: 22px;
    }

    .front-card-title-sm {
        font-size: 16px;
    }

    .card,
    .stat-card,
    .admin-sidebar,
    .admin-content,
    .post-sidebar,
    .card-form,
    .post-main {
        border-radius: 22px;
        padding: 16px;
    }
}