body {
    font-family: Tahoma, sans-serif;
}

main {
    max-width: 700px;
    margin: 25px auto;
}

.website-header {
    max-width: 700px;
    margin: 0 auto;
    padding: 15px 20px;
    background-color: rgb(233, 233, 233);
}

.website-header nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

a {
    text-decoration: none;
    color: #1d95a5;
}

a:hover {
    text-decoration: underline;
}

.recipes, .cards-area {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin: 0 auto;
}

.cards-area {
    margin-top: 20px;
}

.recipe-box {
    background-color: rgb(233, 233, 233);
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #8de0d3;
    border-radius: 8px;
    flex: 0 1 calc(50% - 20px);
    box-sizing: border-box;
    max-width: 45%;
}

.recipe-box h3 {
    margin: 0;
}

.tag {
    background: #bee4f0;
    padding: 4px 8px;
    border-radius: 8px;
}

@media (max-width: 700px) {
    .container {
        padding: 10px;
    }

    .site-header {
        padding: 10px;
    }

    .recipe-columns {
        flex-direction: column;
    }

    .recipe-box {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.recipe-description {
    background-color: rgb(233, 233, 233);
    border: 1px solid #8de0d3;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
}

.recipe-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: rgb(233, 233, 233);
    border: 1px solid #8de0d3;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
}

.recipe-info p {
    margin: 0;
}

.recipe-columns {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.recipe-header-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.recipe-header-copy {
    flex: 1;
    min-width: 0;
}

.recipe-header-layout .review-summary-card {
    flex: 0 0 280px;
    padding: 16px;
    margin-top: 8px;
}

.recipe-header-layout .review-average-number {
    font-size: 2rem;
}

.recipe-header-layout .review-summary-text {
    margin-top: 6px;
}

.recipe-header-layout .review-summary-actions {
    gap: 8px;
}

.recipe-header-layout .review-summary-actions > * {
    min-width: 148px;
}

.recipe-header-layout .primary-button,
.recipe-header-layout .secondary-button {
    padding: 8px 12px;
    font-size: 0.95rem;
}

.recipe-columns > div {
    flex: 1;
    background-color: rgb(233, 233, 233);
    border: 1px solid #8de0d3;
    padding: 15px;
    border-radius: 8px;
}

.review-panel {
    margin-top: 24px;
}

.review-summary-card,
.review-form-shell,
.review-list-shell {
    background-color: rgb(233, 233, 233);
    border: 1px solid #8de0d3;
    border-radius: 8px;
    padding: 20px;
}

.review-form-shell,
.review-list-shell {
    margin-top: 16px;
}

.review-summary-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.review-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: #1d95a5;
    margin: 0 0 8px;
}

.review-average-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.review-average-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d95a5;
    line-height: 1;
}

.review-summary-text,
.review-form-help,
.review-card-meta,
.review-list-header p,
.review-feedback {
    color: #355b61;
}

.review-summary-text {
    margin: 10px 0 0;
}

.review-summary-actions,
.review-form-actions,
.review-form-footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.review-summary-actions {
    justify-content: flex-end;
}

.primary-button,
.secondary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.primary-button {
    background: #1d95a5;
    color: white;
    border: 1px solid #1d95a5;
    box-shadow: 0 8px 18px rgba(29, 149, 165, 0.2);
}

.secondary-button {
    background: white;
    color: #1d95a5;
    border: 1px solid #8fc8c0;
}

.ghost-button {
    background: transparent;
    color: #1d95a5;
    border: 1px solid transparent;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.star-display-button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.star-display {
    --rating-percent: 0%;
    position: relative;
    display: inline-block;
    font-size: 1.4rem;
    letter-spacing: 0.16em;
    line-height: 1;
}

.star-display-base {
    color: #aabdc0;
}

.star-display-fill {
    color: #f2b544;
    position: absolute;
    left: 0;
    top: 0;
    width: var(--rating-percent);
    overflow: hidden;
    white-space: nowrap;
}

.star-display-button {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.review-form {
    display: grid;
    gap: 16px;
}

.review-form-header,
.review-list-header,
.review-card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.review-form-header h2,
.review-list-header h2,
.review-card h3 {
    margin: 0;
}

.review-rating-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.review-rating-value {
    margin: 0;
    min-width: 72px;
    font-weight: 700;
    color: #1d95a5;
}

.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-input input {
    display: none;
}

.star-input label {
    font-size: 2rem;
    color: #c7d8da;
    cursor: pointer;
    padding-right: 6px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
    color: #f2b544;
    transform: translateY(-1px);
}

.summary-star-input label {
    font-size: 1.2rem;
    padding-right: 4px;
}

.review-label {
    font-weight: 700;
    color: #1d95a5;
}

.review-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #8de0d3;
    border-radius: 8px;
    padding: 12px 14px;
    font: inherit;
    resize: vertical;
    min-height: 110px;
    background: white;
}

.review-feedback {
    margin: 0;
    min-height: 1.4em;
}

.review-feedback.is-error {
    color: #b23b3b;
}

.review-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.review-card {
    background: white;
    border: 1px solid #8de0d3;
    border-radius: 8px;
    padding: 16px;
}

.review-card-rating {
    text-align: right;
}

.review-card-stars {
    font-size: 1.1rem;
}

.review-card-comment {
    margin: 14px 0 0;
    line-height: 1.5;
}

.review-card-empty {
    text-align: center;
}

.review-login-card h2,
.review-login-card p {
    margin-top: 0;
}

.is-hidden {
    display: none;
}

@media (max-width: 700px) {
    .review-summary-card,
    .review-form-header,
    .review-list-header,
    .review-card-header {
        flex-direction: column;
    }

    .recipe-header-layout {
        flex-direction: column;
    }

    .recipe-header-layout .review-summary-card {
        width: 100%;
        box-sizing: border-box;
        margin-top: 0;
    }

    .review-summary-actions,
    .review-form-actions,
    .review-form-footer {
        width: 100%;
    }

    .review-summary-actions > *,
    .review-form-actions > * {
        width: 100%;
    }

    .review-card-rating {
        text-align: left;
    }
}

