/* ========================================
   FEED COMPONENT - MODERN DESIGN
   Fixed: Likes with emoji, comments with emoji picker, sprites, modern look
   ======================================== */

/* Container Principal */
.feed-container {
    max-width: 100%;
    margin: 0 auto 30px;
    background: linear-gradient(to bottom, #fefce8 0%, #fef9c3 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

/* Header */
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #fbbf24;
    flex-wrap: wrap;
    gap: 15px;
}

.feed-header > div {
    flex: 1;
}

.feed-header h2 {
    color: #7c2d12;
    font-size: 32px;
    margin: 0 0 10px;
    font-weight: bold;
    text-shadow: none;
}

.feed-subtitle {
    color: #92400e;
    font-size: 15px;
    margin: 0;
}

/* Messages */
.feed-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: bold;
text-align: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    border: 2px solid #dc2626;
}

.feed-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    border: 2px solid #16a34a;
}

/* Create Post Form */
.feed-create-post {
    background: #fffbeb;
    border: 2px solid #fbbf24;
    border-radius: 8px;
  padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.2);
}

.feed-create-post h3 {
    color: #7c2d12;
  margin: 0 0 20px;
    font-size: 20px;
    border-bottom: 2px solid #fbbf24;
    padding-bottom: 10px;
}

.feed-form-group {
    margin-bottom: 20px;
}

.feed-form-group label {
    display: block;
    color: #7c2d12;
    font-weight: bold;
 margin-bottom: 8px;
    font-size: 14px;
}

.feed-form-group select,
.feed-form-group input[type="text"],
.feed-form-group input[type="file"],
.feed-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #fbbf24;
    border-radius: 6px;
    font-size: 14px;
    font-family: Verdana, Arial, sans-serif;
    background: white;
    color: #5A2800;
    transition: all 0.3s;
  box-sizing: border-box;
}

.feed-form-group textarea {
min-height: 120px;
    resize: vertical;
}

.feed-form-group select:focus,
.feed-form-group input:focus,
.feed-form-group textarea:focus {
    outline: none;
border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.feed-char-counter {
    text-align: right;
    font-size: 12px;
 color: #92400e;
    margin-top: 5px;
}

/* Emoji Picker */
.feed-emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: white;
 border: 2px solid #fbbf24;
    border-radius: 6px;
}

.emoji-btn {
    background: none;
    border: 1px solid #fde68a;
    border-radius: 4px;
    padding: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.emoji-btn:hover {
    background: #fef3c7;
    transform: scale(1.2);
  border-color: #fbbf24;
}

/* Image Preview */
.feed-image-preview {
    margin-top: 10px;
}

.feed-image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    border: 2px solid #fbbf24;
}

/* Submit Button */
.feed-submit-btn {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
 width: 100%;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(124, 58, 237, 0.3);
}

.feed-submit-btn:hover {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(124, 58, 237, 0.4);
}

.feed-submit-btn:active {
    transform: translateY(0);
}

/* Filter Bar */
.feed-filter-bar {
    background: rgba(255, 255, 255, 0.5);
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    border: 2px solid #fbbf24;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.feed-filter-bar strong {
    color: #7c2d12;
    margin-right: 10px;
    font-size: 16px;
}

.feed-filter-btn {
    background: white;
    color: #7c2d12;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    border: 2px solid #fbbf24;
    transition: all 0.3s;
    font-weight: 500;
}

.feed-filter-btn:hover {
    background: linear-gradient(to right, #8b5cf6, #7c3aed);
    color: white;
    border-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.feed-filter-btn.active {
    background: linear-gradient(to right, #8b5cf6, #7c3aed);
    color: white;
    border-color: #7c3aed;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* Posts List */
.feed-posts-list {
    margin-top: 30px;
}

.feed-posts-list h3 {
    color: #7c2d12;
    margin: 0 0 25px;
    font-size: 24px;
    border-bottom: 2px solid #fbbf24;
    padding-bottom: 12px;
    text-shadow: none;
}

/* Post Card - YELLOW/GOLD DESIGN */
.feed-post {
    background: linear-gradient(to bottom, #fefce8 0%, #fef9c3 100%);
    border: 2px solid #fbbf24;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(251, 191, 36, 0.3);
    transition: all 0.3s;
}

.feed-post:hover {
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
    border-color: #f59e0b;
}

/* Post Header with Character Sprite */
.feed-post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #fbbf24;
}

.feed-post-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feed-post-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: 2px solid #d97706;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 3px 10px rgba(251, 191, 36, 0.5);
    overflow: hidden;
}

.feed-post-avatar img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    display: block;
}

/* Post Author Meta (Guild, Level, Vocation) */
.feed-post-author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
}

.feed-post-author-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.post-guild {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.3);
}

.post-level {
    background: linear-gradient(to right, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

.post-vocation {
    background: linear-gradient(to bottom, #fefce8 0%, #fef9c3 100%);
    color: #7c2d12;
    border: 1px solid #fbbf24;
}

.feed-post-author-info > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feed-post-author-info strong {
    color: #7c2d12;
    font-size: 18px;
    font-weight: bold;
}

.feed-post-vocation {
    display: block;
    color: #92400e;
    font-size: 13px;
    font-weight: 500;
}

.feed-post-date {
    color: #92400e;
    font-size: 12px;
    display: block;
}

/* Post Text */
.feed-post-text {
    color: #7c2d12;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
    word-wrap: break-word;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border-left: 4px solid #fbbf24;
}

/* Post Image */
.feed-post-image {
    margin: 15px 0;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #fbbf24;
    transition: all 0.3s;
}

.feed-post-image:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.feed-post-image img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 10px;
    cursor: pointer;
transition: transform 0.3s;
}

.feed-post-image img:hover {
transform: scale(1.02);
}

/* Post Hashtags */
.feed-post-hashtags {
    margin: 18px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feed-post-hashtag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(to bottom, #fefce8 0%, #fef9c3 100%);
    color: #7c2d12;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #fbbf24;
    transition: all 0.3s;
}

.feed-post-hashtag:hover {
    background: linear-gradient(to right, #8b5cf6, #7c3aed);
    color: white;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* Post Actions - WITH EMOJI */
.feed-post-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #fbbf24;
}

.feed-like-btn,
.feed-comment-toggle-btn {
    background: linear-gradient(to bottom, #fefce8 0%, #fef9c3 100%);
    border: 2px solid #fbbf24;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #7c2d12;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.feed-like-btn:hover,
.feed-comment-toggle-btn:hover {
    background: linear-gradient(to right, #8b5cf6, #7c3aed);
    border-color: #7c3aed;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.feed-like-btn.liked {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    color: #991b1b;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.feed-like-btn.liked:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.like-emoji {
    font-size: 20px;
    transition: transform 0.3s;
}

.feed-like-btn.liked .like-emoji {
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.25); }
}

.like-count {
    font-weight: bold;
  font-size: 16px;
}

/* Comments Section */
.feed-comments {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(to bottom, #fefce8 0%, #fef9c3 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.feed-comment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 2px solid #fbbf24;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.15);
}

.comment-player-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(to bottom, #fefce8 0%, #fef9c3 100%);
    color: #7c2d12;
    transition: all 0.3s;
    cursor: pointer;
}

.comment-player-select:focus {
    border-color: #7c3aed;
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
    background: white;
}

.comment-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.comment-text-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #fbbf24;
    border-radius: 10px;
    font-size: 14px;
    color: #7c2d12;
    background: white;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.6;
    transition: all 0.3s;
}

.comment-text-input:focus {
    border-color: #7c3aed;
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-emoji-btn {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.25s;
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.3);
}

.comment-emoji-btn:hover {
    background: linear-gradient(to right, #8b5cf6, #7c3aed);
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.comment-emoji-picker {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    background: white;
    border: 2px solid #fbbf24;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
    margin-top: 10px;
}

.comment-emoji-picker span {
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.comment-emoji-picker span:hover {
    background: linear-gradient(to bottom, #fefce8 0%, #fef9c3 100%);
    transform: scale(1.4);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.feed-comment-submit-btn {
    background: linear-gradient(to right, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feed-comment-submit-btn:hover {
    background: linear-gradient(to right, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
}

.feed-comment-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

/* Comments List */
.feed-comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-comment {
    background: white;
    padding: 18px;
    border-radius: 10px;
    border-left: 4px solid #fbbf24;
    border: 2px solid #fbbf24;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
    transition: all 0.3s;
    position: relative;
}

.feed-comment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #fbbf24, #f59e0b);
    border-radius: 10px 0 0 10px;
}

.feed-comment:hover {
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.25);
    transform: translateX(6px);
    border-color: #7c3aed;
}

.feed-comment:hover::before {
    background: linear-gradient(to bottom, #8b5cf6, #7c3aed);
}

.feed-comment-author {
    color: #7c3aed;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Comment Meta (Guild, Level, Vocation) */
.feed-comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 11px;
}

.feed-comment-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.comment-guild {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 1px 4px rgba(251, 191, 36, 0.3);
}

.comment-level {
    background: linear-gradient(to right, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 1px 4px rgba(124, 58, 237, 0.3);
}

.comment-vocation {
    background: linear-gradient(to bottom, #fefce8 0%, #fef9c3 100%);
    color: #7c2d12;
    border: 1px solid #fbbf24;
}

.feed-comment-text {
    color: #374151;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
    line-height: 1.7;
}

.feed-comment-date {
    color: #92400e;
    font-size: 12px !important;
    font-style: italic;
    opacity: 0.8;
}

/* Empty State */
.feed-empty {
  text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border: 3px dashed #d1d5db;
    border-radius: 12px;
    color: #6b7280;
}

.feed-empty p {
    font-size: 20px;
    margin: 0;
    font-weight: 500;
}

/* Login Required */
.feed-login-required {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #2d1654, #1a0a2e);
    border-radius: 12px;
    border: 3px solid #7c3aed;
  color: white;
}

.feed-login-required p {
font-size: 20px;
    margin-bottom: 25px;
    font-weight: 500;
}

.feed-login-button {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a0a2e;
    padding: 18px 50px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.4);
    border: 3px solid #f59e0b;
}

.feed-login-button:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.6);
}

/* ================================
   FEED MODAL STYLES - MODERN
   ================================ */

.feed-modal-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: -9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.feed-modal-overlay.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
}

.feed-modal {
    display: none;
}

.feed-modal-overlay.active .feed-modal {
    display: block;
    background: linear-gradient(to bottom, #fefce8 0%, #fef9c3 100%);
    border-radius: 16px;
    max-width: 750px;
    width: 92%;
    max-height: 92vh;
}
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(251, 191, 36, 0.5);
    border: 3px solid #fbbf24;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(80px) scale(0.95);
   opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
  opacity: 1;
    }
}

.feed-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 3px solid #fbbf24;
    background: linear-gradient(to bottom, #fefce8 0%, #fef9c3 100%);
}

.feed-modal-header h3 {
    color: #7c2d12;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    text-shadow: none;
}

.feed-modal-close {
    background: linear-gradient(to right, #8b5cf6, #7c3aed);
    border: 2px solid #7c3aed;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-weight: bold;
}

.feed-modal-close:hover {
    background: linear-gradient(to right, #7c3aed, #6d28d9);
    transform: rotate(90deg) scale(1.1);
    border-color: #6d28d9;
}

.feed-modal-body {
    padding: 30px;
}

.feed-new-post-btn {
    background: linear-gradient(to right, #fbbf24, #f59e0b) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3) !important;
    flex-shrink: 0 !important;
}

.feed-new-post-btn:hover {
    background: linear-gradient(to right, #7c3aed, #6d28d9) !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4) !important;
    transform: translateY(-1px) !important;
}

.feed-new-post-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 4px rgba(124, 58, 237, 0.3) !important;
}

.feed-new-post-btn svg {
    width: 18px !important;
    height: 18px !important;
}

/* ================================
   RICH TEXT EDITOR
   ================================ */

.feed-editor-toolbar {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: linear-gradient(to bottom, #fefce8 0%, #fef9c3 100%);
    border: 2px solid #fbbf24;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap;
}

.feed-editor-btn {
    background: white;
    border: 1px solid #fbbf24;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #7c2d12;
    transition: all 0.2s;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-editor-btn:hover {
    background: linear-gradient(to right, #8b5cf6, #7c3aed);
    color: white;
    border-color: #7c3aed;
}

.feed-editor-btn.active {
    background: linear-gradient(to right, #8b5cf6, #7c3aed);
    color: white;
    border-color: #7c3aed;
}

.feed-editor-divider {
    width: 1px;
    background: #fbbf24;
    margin: 0 5px;
}

.feed-color-picker-wrapper {
    position: relative;
}

.feed-color-palette {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(to bottom, #fefce8 0%, #fef9c3 100%);
    border: 2px solid #fbbf24;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    z-index: 100;
    margin-top: 5px;
}

.feed-color-palette.active {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}

.feed-color-option {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
  transition: all 0.2s;
}

.feed-color-option:hover {
    border-color: #7c3aed;
    transform: scale(1.1);
}

/* Emoji Dropdown */
.feed-emoji-dropdown {
    position: relative;
}

.feed-emoji-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(to bottom, #fefce8 0%, #fef9c3 100%);
    border: 2px solid #fbbf24;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    z-index: 100;
    margin-top: 5px;
    max-width: 280px;
}

.feed-emoji-menu.active {
    display: block;
}

.feed-emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    max-height: 200px;
 overflow-y: auto;
}

.feed-emoji-option {
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
    text-align: center;
}

.feed-emoji-option:hover {
    background: #f3f4f6;
    transform: scale(1.2);
}

/* Editor Content Area */
.feed-editor-content {
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    border: 2px solid #fbbf24;
    border-radius: 0 0 8px 8px;
    background: white;
    font-size: 15px;
    color: #7c2d12;
    line-height: 1.6;
    outline: none;
}

.feed-editor-content:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.feed-editor-content:empty:before {
    content: attr(data-placeholder);
    color: #92400e;
    opacity: 0.6;
}

/* Character Counter */
.feed-modal-char-counter {
    text-align: right;
    margin-top: 8px;
    font-size: 13px;
    color: #92400e;
}

.feed-modal-char-counter.warning {
    color: #f59e0b;
}

.feed-modal-char-counter.error {
    color: #ef4444;
    font-weight: 600;
}

/* Form Groups in Modal */
.feed-modal-form-group {
    margin-bottom: 20px;
}

.feed-modal-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #7c2d12;
    font-size: 14px;
}

.feed-modal-form-group select,
.feed-modal-form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #fbbf24;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #7c2d12;
    transition: border-color 0.3s;
}

.feed-modal-form-group select:focus,
.feed-modal-form-group input[type="file"]:focus {
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.feed-modal-image-preview {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

.feed-modal-image-preview img {
    max-width: 100%;
    max-height: 200px;
    display: block;
    border-radius: 8px;
}

.feed-modal-hashtags-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #fbbf24;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #7c2d12;
}

.feed-modal-hashtags-input:focus {
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.feed-modal-popular-tags {
    margin-top: 8px;
    font-size: 13px;
    color: #92400e;
}

.feed-modal-tag-link {
    color: #7c3aed;
    text-decoration: none;
    margin-right: 8px;
    transition: color 0.2s;
}

.feed-modal-tag-link:hover {
    color: #8b5cf6;
    text-decoration: underline;
}

.feed-modal-submit-btn {
    width: 100%;
    background: linear-gradient(to right, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.feed-modal-submit-btn:hover {
    background: linear-gradient(to right, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.5);
}

.feed-modal-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feed-container {
        padding: 18px;
        border-width: 2px;
 }
    
    .feed-header {
        flex-direction: column;
     align-items: stretch;
  text-align: center;
    }
    
    .feed-header h2 {
        font-size: 24px;
    }
    
    .feed-new-post-btn {
        width: 100%;
        justify-content: center;
    }
    
    .feed-post {
        padding: 18px;
    }
    
    .feed-post-author-info {
     flex-direction: column;
  align-items: center;
        text-align: center;
    }
    
    .feed-post-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .feed-like-btn,
.feed-comment-toggle-btn {
        width: 100%;
        justify-content: center;
 }
    
    .feed-comment-form {
        flex-direction: column;
    }
    
    .comment-actions {
  flex-direction: column;
    }
}

/* ? CORRE��O: For�ar renderiza��o UTF-8 para emojis */
.feed-post-text,
.feed-comment span,
.feed-editor-content,
.comment-emoji-picker span,
.feed-emoji-option,
.like-emoji,
.feed-new-post-btn,
.feed-post-date,
.feed-filter-bar strong {
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Segoe UI', Tahoma, sans-serif !important;
}

/* ? CORRE��O: Link do nome do character */
.feed-post-author-link {
    color: #7c3aed !important;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
}

.feed-post-author-link:hover {
    color: #6d28d9 !important;
    text-decoration: underline;
    transform: translateX(2px);
}

.feed-post-author-link strong {
    font-size: 18px;
    font-weight: bold;
    color: inherit;
}

/* ? CORRE��O: Like container com bot�o separado */
.feed-like-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ? CORRE��O: Like button - APENAS o cora��o */
.feed-like-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 24px;
    transition: all 0.3s;
    border-radius: 50%;
    line-height: 1;
}

.feed-like-icon-btn:hover {
    background: rgba(239, 68, 68, 0.1);
  transform: scale(1.2);
}

.feed-like-icon-btn.liked .like-heart {
    animation: heartBeat 0.5s ease;
    color: #ef4444;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.25); }
}

/* ? CORRE��O: Like label - N�O clic�vel */
.feed-like-label {
    font-weight: 600;
    font-size: 15px;
    color: #374151;
    pointer-events: none !important;
    user-select: none;
    cursor: default;
}
    display: block;
}
