﻿:root {
    --bg: #fff;
    --card: #fff;
    --text: #222;
    --muted: #6c757d;
    --accent: #ff8fa3;
    --input-bg: #f0f2f5;
    --input-hover: #e4e6eb;
}

[data-theme="dark"] {
    --bg: #071226;
    --card: #0b1626;
    --text: #e6eef8;
    --muted: #9aa4b2;
    --input-bg: #1e293b;
    --input-hover: #334155;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, var(--bg), #f8fafc);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif
}

.card {
    background: var(--card);
    border-radius: 10px
}

.paw {
    font-size: 28px
}

table {
    width: 100%;
    border-collapse: collapse
}

th,
td {
    border: 1px solid #e6eef8;
    padding: 8px;
    text-align: left
}

[data-theme="dark"] th,
[data-theme="dark"] td {
    border-color: #142033
}

@media (max-width:720px) {
    .paw {
        font-size: 22px
    }
}

/* Badge System Styles */
.badge-locked {
    opacity: 0.6;
    cursor: help;
    transition: all 0.3s ease;
}

.badge-locked:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.badge-display {
    transition: all 0.3s ease;
}

.badge-container:hover .badge-display img,
.badge-container:hover .badge-display i {
    transform: scale(1.1);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Comment Section Styles */
.comment-input-wrapper {
    position: relative;
    background: var(--input-bg);
    border-radius: 20px;
    padding: 2px;
}

.comment-input-field {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 100px 10px 15px;
    /* Right padding for icons */
    border-radius: 20px;
    outline: none;
    color: var(--text);
}

.comment-input-actions {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    color: var(--muted);
}

.comment-input-action-btn,
.send-comment-btn-icon {
    cursor: pointer;
    transition: color 0.2s;
    font-size: 1.1rem;
}

.comment-input-action-btn:hover,
.send-comment-btn-icon:hover {
    color: var(--accent);
}

.comment-bubble {
    background: var(--input-bg);
    padding: 10px 15px;
    border-radius: 18px;
    display: inline-block;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 2px;
}

.comment-text {
    font-size: 0.95rem;
    color: var(--text);
    word-break: break-word;
}

.comment-actions-row {
    margin-left: 10px;
    margin-top: 2px;
    font-size: 0.8rem;
}

.comment-action-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    margin-right: 10px;
}

.comment-action-link:hover {
    text-decoration: underline;
}

.comment-action-link.liked {
    color: #ff4d6d;
    /* Primary Pink/Red */
}

/* Reaction Bubble (Heart) */
.reaction-bubble {
    position: absolute;
    bottom: -10px;
    right: -5px;
    background: white;
    border-radius: 10px;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    border: 1px solid #fff;
    z-index: 10;
}

.reaction-icon-small {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -4px;
    /* Stack overlap if multiple */
}

.reaction-bg-red {
    background: #ff4d6d;
    color: white;
}

.reaction-count-num {
    font-size: 0.7rem;
    margin-left: 6px;
    color: #65676b;
    padding-right: 4px;
}

/* Replies */
.replies-wrapper {
    margin-left: 40px;
    /* Indent replies */
    border-left: 2px solid var(--input-bg);
}

/* Feed Image Preview */
#preview {
    border: 1px solid #eee;
}