/* CSS Variables - Design System */

:root {

--fore: hsl(168, 76%, 32%);
--card: hsl(0, 0%, 100%);
--border: hsl(240, 20%, 88%);
--muted: hsl(240, 20%, 96%);
--muted-foreground: hsl(240, 10%, 45%);
--brands: hsl(168, 76%, 36%);
--brand-light: hsl(168, 76%, 55%);
--brand-hover: hsl(168, 76%, 30%);
--text-heading: hsl(240, 30%, 15%);
--text-body: hsl(240, 10%, 28%);
--comment-border: hsl(240, 20%, 85%);
--reply-indicator: hsl(168, 76%, 36%);
--destructive: hsl(0, 84%, 55%);
--destructive-bg: hsl(0, 84%, 96%);
--destructive-border: hsl(0, 84%, 85%);
--accent-1: #00C982;
  --accent-2: #00E4FF;
  --brand: linear-gradient(135deg, var(--accent-1), var(--accent-2));

}

*{
margin: 0;
padding: 0;
box-sizing: border-box;
}

.btn-primary {

background: var(--brand);

color: white;

border: none;

padding: 0.5rem 1.5rem;

border-radius: 6px;

cursor: pointer;

font-weight: 500;

transition: background 0.2s;

}

.btn-primary:hover {

filter: brightness(1.1);
    transform: translateY(-2px);

}

.btn-outline {
background: transparent;
border: 1px solid var(--brands);
color: var(--brand);
padding: 0.5rem 1rem;
border-radius: 6px;
cursor: pointer;
font-size: 0.875rem;
font-weight: 500;
transition: all 0.2s;

}

.btn-outline:hover {

background: var(--brand-light);

}

.btn-submit {

background: var(--brand);

color: white;

border: none;

padding: 0.75rem 2rem;

border-radius: 6px;

cursor: pointer;

font-weight: 600;

font-size: 1rem;

transition: background 0.2s;

}

.btn-submit:hover {

filter: brightness(1.1);
    transform: translateY(-2px);

}


/* Comments Section */

.comments-section {

margin-top: 4rem;

}

.comments-header {

display: flex;

align-items: center;

justify-content: space-between;

margin-bottom: 2rem;

}

.comments-title {

font-size: 1.875rem;

font-weight: 700;

color: var(--text-heading);

display: flex;

align-items: center;

gap: 0.5rem;

}

.comments-list {

margin-bottom: 3rem;

}


/* Comment */

.comment {

margin-bottom: 2rem;

}

.comment.reply {

margin-left: 3rem;

margin-top: 1rem;

position: relative;

}

.comment.reply::before {

content: '';

position: absolute;

left: -1.5rem;

top: 0;

bottom: 0;

width: 2px;

background: var(--reply-indicator);

}

.comment-wrapper {

display: flex;

gap: 1rem;

}

.comment-avatar {

width: 48px;

height: 48px;

border-radius: 50%;

flex-shrink: 0;

background: var(--brand-light);

display: flex;

align-items: center;

justify-content: center;

color: var(--brand);

font-weight: 600;

font-size: 1.25rem;

}

.comment-content {

flex: 1;

}

.comment-header {

display: flex;

align-items: center;

gap: 0.75rem;

margin-bottom: 0.5rem;

}

.comment-author {

font-weight: 600;

color: var(--text-heading);

}

.comment-date {

font-size: 0.875rem;

color: var(--muted-foreground);

}

.comment-text {

color: var(--text-body);

line-height: 1.7;

margin-bottom: 0.75rem;

}

.comment-reply-btn {

background: var(--cta-gradient);

border: none;

color: var(--brand);

padding: 0.5rem 0.75rem;

cursor: pointer;

font-size: 0.875rem;

font-weight: 500;

border-radius: 4px;

transition: all 0.2s;

}

.comment-reply-btn:hover {

filter: brightness(1.1);
    transform: translateY(-2px);

}

.comment-replies {

margin-top: 1rem;

}


/* Reply Form */

.reply-form {

margin-top: 1rem;

padding: 1rem;

background: var(--muted);

border-radius: 8px;

}

.reply-form textarea {

width: 100%;

padding: 0.75rem;

border: 1px solid var(--border);

border-radius: 6px;

background: white;

color: var(--text-body);

resize: none;

font-family: inherit;

font-size: 0.875rem;

}

.reply-form textarea:focus {

outline: none;

border-color: var(--brand);

box-shadow: 0 0 0 2px var(--brand-light);

}

.reply-form-actions {

display: flex;

gap: 0.5rem;

margin-top: 0.5rem;

}

.btn-small {

padding: 0.5rem 1rem;

border-radius: 4px;

font-size: 0.875rem;

border: none;

cursor: pointer;

font-weight: 500;

transition: all 0.2s;

}

.btn-small.primary {

background: var(--brand);

color: white;

}

.btn-small.primary:hover {

filter: brightness(1.1);
    transform: translateY(-2px);

}

.btn-small.ghost {

background: none;

color: var(--text-body);

}

.btn-small.ghost:hover {

background: var(--muted);

}


/* Comment Form */

.comment-form-wrapper {

margin-top: 3rem;

padding-top: 2rem;

border-top: 1px solid var(--border);

}

.form-title {

font-size: 1.5rem;

font-weight: 700;

color: var(--text-heading);

margin-bottom: 1.5rem;

}

.form-error {

margin-bottom: 1rem;

padding: 1rem;

background: var(--destructive-bg);

border: 1px solid var(--destructive-border);

border-radius: 8px;

color: var(--destructive);

font-size: 0.875rem;

font-weight: 500;

}

.form-error.hidden {

display: none;

}

.comment-form {

display: flex;

flex-direction: column;

gap: 1rem;

}

.form-row {

display: grid;

grid-template-columns: 1fr;

gap: 1rem;

}

@media (min-width: 768px) {

.form-row {

    grid-template-columns: 1fr 1fr;

}

}

.form-group {

display: flex;

flex-direction: column;

gap: 0.5rem;

}

.form-group label {

font-size: 0.875rem;

font-weight: 500;

color: var(--text-body);

}

.form-group input,

.form-group textarea {

padding: 0.75rem 1rem;

border: 1px solid var(--border);

border-radius: 6px;

background: white;

color: var(--text-body);

font-family: inherit;

font-size: 1rem;

transition: all 0.2s;

}

.form-group input:focus,

.form-group textarea:focus {

outline: none;

border-color: var(--brand);

box-shadow: 0 0 0 2px var(--brand-light);

}

.form-group textarea {

resize: none;

}

.checkbox-group {

display: flex;

align-items: start;

gap: 0.75rem;

}

.checkbox-group input[type="checkbox"] {

width: 18px;

height: 18px;

margin-top: 0.25rem;

cursor: pointer;

accent-color: var(--brand);

}

.checkbox-group label {

font-size: 0.875rem;

color: var(--muted-foreground);

line-height: 1.6;

cursor: pointer;

}

.full-disclamier{

color: hsl(240, 10%, 45%);

}

.privacy-link {

color: var(--brand);

text-decoration: none;

}

.privacy-link:hover {

text-decoration: underline;

}


/* Toast Notification */

.toast {

position: fixed;

bottom: 2rem;

right: 2rem;

background: var(--card);

border: 1px solid var(--border);

border-radius: 8px;

padding: 1rem 1.5rem;

box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

min-width: 300px;

z-index: 2000;

animation: slideIn 0.3s ease-out;

}

.toast.hidden {

display: none;

}

@keyframes slideIn {

from {

    transform: translateX(400px);

    opacity: 0;

}

to {

    transform: translateX(0);

    opacity: 1;

}

}

.toast-content strong {

display: block;

color: var(--text-heading);

margin-bottom: 0.25rem;

}

.toast-content p {

color: var(--text-body);

font-size: 0.875rem;

margin: 0;

}


/* Utility Classes */
.hidden {
    display: none;
}

/* Load More Button */
.load-more-wrapper {
    text-align: center;
    margin: 2rem 0;
}

#load-more-btn {
    background: var(--brand);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
}

#load-more-btn:hover {
filter: brightness(1.1);
    transform: translateY(-2px);
}


/* Optional slide-down animation for new comments */
.comment.slide-in {
    animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
