/* Three-dot Menu Styles */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.post-menu-container {
    position: relative;
}

.post-menu-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #666;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.3s ease;
}

.post-menu-btn:hover {
    color: #007bff;
}

.post-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
}

.post-menu-dropdown.show {
    display: block;
}

.menu-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.95em;
    color: #333;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: #f5f5f5;
}

.menu-item.danger-btn {
    color: #dc3545;
}

.menu-item.danger-btn:hover {
    background-color: #ffe6e6;
}

/* Pin Badge */
.pin-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Support */
html.dark-mode .post-menu-btn {
    color: #ccc;
}

html.dark-mode .post-menu-btn:hover {
    color: #007bff;
}

html.dark-mode .post-menu-dropdown {
    background-color: #2c2c2c;
    border-color: #444;
}

html.dark-mode .menu-item {
    color: #e0e0e0;
    border-bottom-color: #444;
}

html.dark-mode .menu-item:hover {
    background-color: #3a3a3a;
}

html.dark-mode .menu-item.danger-btn:hover {
    background-color: #4a2020;
}