/* 🚀 Drama Comments System Styles */

/* Main Container */
#drama-app-comments {
    max-width: 100%;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: right;
    direction: rtl;
}

/* Header Spacer */
#drama-app-comments h3 {
    margin-bottom: 25px;
    /* Add space below header */
    font-size: 1.2rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

/* User Auth Area / Login Box */
#user-auth-area {
    margin-bottom: 20px;
}

.login-prompt {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    /* Ensure sufficient height */
}

.login-prompt i {
    color: #71717a;
    margin-bottom: 15px;
    font-size: 3rem;
    /* Larger Icon */
}

.login-prompt p {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 25px;
}

/* Google Button Center Fix */
#google-signin-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

/* Comment Form */
.comment-form {
    background: rgba(26, 31, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-input-wrapper {
    flex-grow: 1;
}

.comment-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    padding: 12px;
    font-size: 0.95rem;
    min-height: 80px;
    resize: vertical;
    transition: border-color 0.2s;
}

.comment-textarea:focus {
    outline: none;
    border-color: #e50914;
}

.submit-btn {
    background: #e50914;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #f40612;
}

.submit-btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Comments List */
#comments-list {
    margin-top: 30px;
}

.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.comment-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.comment-body {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.author-name {
    font-weight: bold;
    color: #e5e7eb;
}

.time-ago {
    font-size: 0.8rem;
    color: #9ca3af;
}

.comment-text {
    color: #d1d5db;
    line-height: 1.6;
    font-size: 0.95rem;
}

.comment-actions {
    margin-top: 10px;
    display: flex;
    gap: 15px;
}

.action-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.action-btn:hover {
    color: #fff;
}

.action-btn.liked {
    color: #e50914;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}