/* ==== Page Heading ==== */
.page-heading {
    position: relative;
    background: linear-gradient(135deg, #0f3b1d, #00c853, #002911);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    padding: 2.5rem 2rem;
    border-bottom: 2px solid limegreen;
    box-shadow: 0 10px 30px rgba(0, 255, 100, 0.1);
    text-align: center;
    overflow: hidden;
    color: white;
}

/* Optional pattern overlay */
.page-heading::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

.page-heading h1,
.page-heading p {
    position: relative;
    z-index: 1;
    margin: 0;
}

.page-heading h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.page-heading p {
    font-size: 1.2rem;
    color: #e0ffe6;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* ==== Return Homepage Button ==== */

/* ==== Return Homepage Button ==== */
.return-homepage {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.return-homepage:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* === Responsive adjustments === */
@media (max-width: 768px) {
    .return-homepage {
        top: 0.8rem;
        left: 0.8rem;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
           /* Add more breathing room between button and heading */
    .page-heading h1 {
        margin-top: 2rem; /* pushes h1 lower so it doesn't overlap with the button */
    }
}

@media (max-width: 480px) {
    .return-homepage {
        top: 0.6rem;
        left: 0.6rem;
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
        border-radius: 4px;
    }

        /* Add more breathing room between button and heading */
    .page-heading h1 {
        margin-top: 2rem; /* pushes h1 lower so it doesn't overlap with the button */
    }
}

/* ==== Review Buttons ==== */
.reviews-header {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.reviews-header a {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.btn-add-opinion {
    background-color: #00e676;
    color: black;
}

.btn-add-opinion:hover {
    background-color: #00b248;
    transform: translateY(-2px);
}

.btn-login {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Gradient animation */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 480px) {
    .page-heading h1 { font-size: 2rem; }
    .page-heading p { font-size: 1rem; }
    .reviews-header a { padding: 0.5rem; font-size: 0.95rem; }
}
