/* =========================
   GLOBAL THEME + RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8A2BE2;
    --secondary: #4B0082;
    --dark: #1A001A;
    --light: #F8F0FF;
    --accent: #FF6BCB;
}

body {
    background: linear-gradient(135deg, var(--dark), var(--secondary), var(--primary));
    color: var(--light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
}



/* =========================
   HERO
========================= */
.comments-hero {
    padding: 60px 0 30px 100px;
}

.comments-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.comments-subtitle {
    opacity: 0.85;
}



/* =========================
   TWO-COLUMN LAYOUT
========================= */
.comments-section {
    padding: 20px 0 60px 0;
}

.comments-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}



/* =========================
   LEFT SIDE (COMMENT FEED)
========================= */

/* Remove the big box completely */
.comments-display {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* No scrollbar, free-flow feed */
.comments-list {
    padding: 0;
    overflow: visible !important;
}

.no-comments {
    text-align: center;
    padding: 40px;
    opacity: 0.7;
}

.no-comments i {
    font-size: 3.2rem;
    margin-bottom: 10px;
}



/* =========================
   COMMENT CARDS
   (MATCH PROJECT CARD STYLE)
========================= */
.comment-item {
    background: rgba(26, 0, 26, 0.65);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 25px;

    border: 1px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);

    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
    transition: all 0.25s ease;
}

.comment-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(255, 107, 203, 0.25);
    border-color: rgba(255, 107, 203, 0.4);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;

    background: linear-gradient(45deg, var(--primary), var(--accent));
    border: 2px solid var(--light);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-author-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
}

.comment-author {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.05rem;
}

.comment-date {
    opacity: 0.7;
    font-size: 0.85rem;
}

.comment-content {
    margin-top: 12px;
    opacity: 0.9;
    font-size: 0.95rem;
}



/* =========================
   RIGHT COLUMN (FORM SIDEBAR)
   — Original design kept
========================= */
.comment-sidebar {
    position: sticky;
    top: 100px;
}

.comment-form-container {
    background: rgba(26, 0, 26, 0.75);
    padding: 25px;
    border-radius: 18px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.3);
}



/* =========================
   PROFILE HEADER
========================= */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--light);
}

.profile-avatar i {
    font-size: 1.3rem;
    color: var(--light);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 700;
    font-size: 1.1rem;
}

.user-status {
    opacity: 0.7;
    font-size: 0.85rem;
}



/* =========================
   FORM FIELDS
========================= */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(26, 0, 26, 0.85);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    color: var(--light);

    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 203, 0.25);
    outline: none;
}

textarea {
    resize: vertical;
}



/* PROFILE PICTURE UPLOAD */
.profile-picture-upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-input {
    display: none;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
    padding: 12px;
    border: 2px dashed rgba(255, 107, 203, 0.3);
    border-radius: 12px;

    color: var(--accent);
    background: rgba(138, 43, 226, 0.2);

    cursor: pointer;
    transition: 0.3s;
}

.file-label:hover {
    background: rgba(255, 107, 203, 0.3);
    border-color: var(--accent);
}

.file-info {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}



/* CHARACTER COUNTER */
.char-count {
    text-align: right;
    font-size: 0.85rem;
    opacity: 0.7;
}



/* =========================
   SUBMIT BUTTON
========================= */
.btn-primary {
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    border: none;

    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 203, 0.4);
}



/* FOOTER */
.form-footer {
    text-align: center;
    margin-top: 10px;
    opacity: 0.7;
    font-size: 0.85rem;
}



/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .comments-layout {
        grid-template-columns: 1fr;
    }
    .comment-sidebar {
        position: static;
    }
}
