/* ทำนายฝัน — public */

.dream-search {
    margin: 0 0 1.25rem;
}

.dream-search--view {
    margin: 0 0 1.5rem;
    max-width: 100%;
}

.dream-search__field {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 560px;
    background: #fff;
    border: 1px solid #e8dfd2;
    border-radius: 999px;
    padding: 4px 4px 4px 16px;
    box-shadow: 0 2px 10px rgba(80, 40, 10, 0.04);
}

.dream-search__field > i {
    color: #a08070;
    font-size: 1.1rem;
}

.dream-search__input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    font-size: 1rem;
    outline: none;
    min-width: 0;
}

.dream-search__btn {
    border: 0;
    border-radius: 999px;
    background: var(--brand, #d83607);
    color: #fff;
    font-weight: 600;
    padding: 10px 18px;
    cursor: pointer;
    white-space: nowrap;
}

.dream-search__btn:hover {
    background: var(--brand-dark, #9a2805);
}

.dream-meta {
    margin-bottom: 1rem;
}

.dream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 0 0 1.5rem;
}

.dream-grid--compact {
    margin-top: 0.75rem;
}

.dream-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e8dfd2;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.dream-card:hover {
    border-color: #d89620;
    box-shadow: 0 4px 16px rgba(154, 40, 5, 0.08);
    color: inherit;
    transform: translateY(-1px);
}

.dream-card__ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff3e8;
    color: #9a2805;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dream-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dream-card__title {
    font-weight: 700;
    color: #3d2a1f;
    line-height: 1.35;
}

.dream-card__lucky {
    font-size: 0.85rem;
    color: #888;
}

.dream-card__chev {
    color: #c0a898;
    flex-shrink: 0;
}

.dream-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 1.5rem;
}

.dream-pager__btn {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e8dfd2;
    background: #fff;
    color: #5a4030;
    font-weight: 600;
    text-decoration: none;
}

.dream-pager__btn:hover,
.dream-pager__btn.is-active {
    background: #9a2805;
    border-color: #9a2805;
    color: #fff;
}

.dream-disclaimer {
    margin: 1.5rem 0 0;
    padding: 14px 16px;
    background: #faf6f1;
    border-radius: 12px;
    border: 1px solid #efe6db;
    font-size: 0.92rem;
    color: #666;
    line-height: 1.65;
}

.dream-lucky {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 16px;
    margin: 0 0 1.25rem;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fff8ee, #fff);
    border: 1px solid #f0d9a8;
    border-radius: 14px;
}

.dream-lucky__label {
    font-size: 0.9rem;
    color: #8a6a40;
    font-weight: 600;
}

.dream-lucky__num {
    font-size: 1.35rem;
    font-weight: 800;
    color: #9a2805;
    letter-spacing: 0.04em;
}

.dream-view__h {
    font-size: 1.15rem;
    margin: 0 0 0.75rem;
    color: #3d2a1f;
}

.dream-view__body p {
    margin: 0 0 1rem;
    line-height: 1.8;
}

.dream-related {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #efe6db;
}

.dream-related__title {
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
    color: #3d2a1f;
}

@media (max-width: 576px) {
    .dream-search__field {
        border-radius: 14px;
        flex-wrap: wrap;
        padding: 8px;
    }

    .dream-search__btn {
        width: 100%;
        border-radius: 10px;
    }
}
