/* General Page Layout */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: #f0f0f0; /* Light gray background */
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: #fff;
    color: #2196f3;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h1 {
    margin: 0;
    font-weight: 700;
}

/* Home Button */
.home-button {
    background-color: #2196f3;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.home-button:hover {
    background-color: #1976d2;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    width: 90%;
    max-width: 1000px;
    margin-top: 20px;
}

/* Review Cards */
#reviews-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.review-card h3 {
    color: #2196f3;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Star Ratings */
.rating {
    display: inline-block;
    margin-bottom: 10px;
}

.star {
    font-size: 1.2em;
    color: gold;
    margin: 0 2px;
}

.empty-star {
    font-size: 1.2em;
    color: lightgray;
    margin: 0 2px;
}

/* Review Text */
.review-text {
    line-height: 1.4;
    color: #555;
}

/* Metadata */
.meta {
    font-size: 0.9em;
    color: #777;
    margin-top: 10px;
}

/* Submit Review Button */
.button {
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #1976d2;
}

/* Comment Box Styles */
.comment-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical; /* Allows users to resize the box vertically */
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-input:focus {
    outline: none;
    border-color: #4CAF50; /* Green border on focus */
    box-shadow: 0 2px 8px rgba(0, 128, 0, 0.2); /* Green shadow */
}

.comment-input::placeholder {
    color: #888; /* Lighter color for placeholder */
}

/* Button Styles */
.comment-button {
    background-color: #4CAF50; /* Green button */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.comment-button:hover {
    background-color: #45a049; /* Darker green on hover */
}

.comment-button:disabled {
    background-color: #aaa; /* Disabled state */
    cursor: not-allowed;
}

/* General Comment Section Styles */
.comments-container {
    margin-top: 20px;
}

.comment-card {
    background-color: #f1f1f1; /* Lighter background for comments */
    border-left: 4px solid #4CAF50; /* Green left border to differentiate */
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.comment-card p {
    margin: 0;
    font-size: 16px;
}

.comment-meta {
    font-size: 12px;
    color: #888;
}

/* Footer */
footer {
    background-color: #fff;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    main {
        padding: 20px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .home-button {
        padding: 8px 12px;
    }

    .review-card {
        padding: 15px;
    }

    .review-card h3 {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .review-card {
        padding: 10px;
    }

    .review-card h3 {
        font-size: 1.2em;
    }

    .button {
        padding: 10px;
        font-size: 14px;
    }

    footer {
        padding: 8px;
    }
}
