/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff9f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #ff8c00, #ff6b00);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(255, 140, 0, 0.3);
}

.header__title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.header__nav {
    display: flex;
    gap: 20px;
}

.nav__link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav__link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav__link--active {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

/* Main */
.main {
    flex: 1;
    padding: 40px 0;
}

/* Reviews Section */
.reviews__title {
    font-size: 1.5rem;
    color: #ff6b00;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff8c00;
}

.reviews__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Review Card */
.review-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.2);
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.review-card__title {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.review-card__rating {
    color: #ff8c00;
    font-size: 1.1rem;
}

.review-card__meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.review-card__content {
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Review Detail */
.review-detail__content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.review-detail__title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.review-detail__rating {
    color: #ff8c00;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.review-detail__meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.review-detail__text {
    color: #444;
    white-space: pre-wrap;
    line-height: 1.8;
}

.review-detail__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Form Section */
.form-section__title {
    font-size: 1.5rem;
    color: #ff6b00;
    margin-bottom: 20px;
}

.review-form {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ff8c00;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

/* Rating Input */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
    transition: color 0.2s;
}

.rating-input label::before {
    content: '\2605';
}

.rating-input input[type="radio"]:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #ff8c00;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn--primary {
    background: linear-gradient(135deg, #ff8c00, #ff6b00);
    color: white;
}

.btn--primary:hover {
    background: linear-gradient(135deg, #ff6b00, #e65c00);
    transform: translateY(-1px);
}

.btn--secondary {
    background: #f5f5f5;
    color: #666;
}

.btn--secondary:hover {
    background: #e5e5e5;
}

.btn--danger {
    background: #dc3545;
    color: white;
}

.btn--danger:hover {
    background: #c82333;
}

/* Footer */
.footer {
    background: #333;
    color: #999;
    padding: 20px 0;
    text-align: center;
}

/* Utility */
.loading {
    text-align: center;
    color: #999;
    padding: 40px;
}

.error {
    text-align: center;
    color: #dc3545;
    padding: 40px;
}

.empty-message {
    text-align: center;
    color: #666;
    padding: 40px;
    background: white;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    .header__title {
        font-size: 1.4rem;
    }

    .header__nav {
        flex-direction: column;
        gap: 10px;
    }

    .review-card__header {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .review-detail__actions {
        flex-direction: column;
    }
}
